mailsplit: fix FILE* leak in split_maildir
commitd270d7b7a2d631c3d11315f20bb0cf15e438dafa
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:03:05 +0000 (24 17:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2015 17:18:18 +0000 (25 10:18 -0700)
treebb43a5ee55f2bfa2890a0b6758ca9bedf5bf8207
parent7cd17e80579c2bffd6245837175a6e1b12a78045
mailsplit: fix FILE* leak in split_maildir

If we encounter an error while splitting a maildir, we exit
the function early, leaking the open filehandle. This isn't
a big deal, since we exit the program soon after, but it's
easy enough to be careful.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailsplit.c