projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35c3c62
)
[PATCH] Plug memory leak in read_object_with_reference()
author
Sergey Vlasov
<vsu@altlinux.ru>
Mon, 8 Aug 2005 18:44:43 +0000
(22:44 +0400)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 9 Aug 2005 05:51:45 +0000
(22:51 -0700)
When following a reference, read_object_with_reference() did not free the
intermediate object data.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c
patch
|
blob
|
history
diff --git
a/sha1_file.c
b/sha1_file.c
index
a17a6d1
..
a4bf067
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. */
}