plug a few coverity-spotted leaks
Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
28eb1afec9
commit
dc4cd76710
@ -187,6 +187,8 @@ static int batch_one_object(const char *obj_name, int print_contents)
|
||||
if (type <= 0) {
|
||||
printf("%s missing\n", obj_name);
|
||||
fflush(stdout);
|
||||
if (print_contents == BATCH)
|
||||
free(contents);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user