Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Plug memory leak in read_object_with_reference()
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index a17a6d13b27630aec40a5e7ee48a7b2d1874d05a..a4bf06798621adc62d33120f8f8d69f088633280 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-1165,6
+1165,7
@@
void *read_object_with_reference(const unsigned char *sha1,
free(buffer);
return NULL;
}
+ free(buffer);
/* Now we have the ID of the referred-to object in
* actual_sha1. Check again. */
}