commit: Fix a memory leak in determine_author_info
authorStefan Beller <stefanbeller@googlemail.com>
Sun, 14 Jul 2013 21:35:47 +0000 (23:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jul 2013 16:45:21 +0000 (09:45 -0700)
commit70a0cc9e5c62f7b8ce0acc693e10a9e080f187ef
treee6c6b10460565a844596189d8a83cace4c641d78
parent5d9cfa29d27156cc9a00c75eaa31b831107ed0b9
commit: Fix a memory leak in determine_author_info

The date variable is assigned new memory via xmemdupz and 2 lines later
it is assigned new memory again via xmalloc, but the first assignment
is never freed nor used.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c