record_author_date(): fix memory leak on malformed commit
authorJeff King <redacted>
Wed, 27 Aug 2014 07:56:31 +0000 (03:56 -0400)
committerJunio C Hamano <redacted>
Wed, 27 Aug 2014 17:30:42 +0000 (10:30 -0700)
commit6876618ceaafddba625ed823679d99de0e79d111
treeb88b9e758dc287b1bef3ae0fc6ea61a6546314f9
parentfe6eb7f2c506190c817407accf27834005a57f2b
record_author_date(): fix memory leak on malformed commit

If we hit the end-of-header without finding an "author"
line, we just return from the function. We should jump to
the fail_exit path to clean up the buffer that we may have
allocated.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
commit.c
git clone https://git.99rst.org/PROJECT