summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-08-27 03:56:31 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-08-27 10:30:42 -0700
commit6876618ceaafddba625ed823679d99de0e79d111 (patch)
treeb88b9e758dc287b1bef3ae0fc6ea61a6546314f9 /fast-import.c
parentcommit: provide a function to find a header in a buffer (diff)
downloadtgif-6876618ceaafddba625ed823679d99de0e79d111.tar.xz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
0 files changed, 0 insertions, 0 deletions