author | Carlos Rica <jasampler@gmail.com> | |
Fri, 25 May 2007 01:46:22 +0000 (03:46 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 25 May 2007 01:56:06 +0000 (18:56 -0700) | ||
commit | 0b1f113075aafb0c91a406d984d0152e55c981da | |
tree | 0251d2b4a2dc0b035f195a7db6f634e9c371b5fd | tree | snapshot |
parent | c075aea5da6c35edfe86da7d3edced67cdb009c8 | commit | diff |
fix memory leak in parse_object when check_sha1_signature fails
When check_sha1_signature fails, program is not terminated:
it prints an error message and returns NULL, so the
buffer returned by read_sha1_file should be freed before.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When check_sha1_signature fails, program is not terminated:
it prints an error message and returns NULL, so the
buffer returned by read_sha1_file should be freed before.
Signed-off-by: Carlos Rica <jasampler@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
object.c | diff | blob | history |