Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information