git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
2d4dcf2
)
pack-redundant: plug memory leak
author
Johannes Schindelin
<redacted>
Thu, 4 May 2017 13:56:54 +0000
(15:56 +0200)
committer
Junio C Hamano
<redacted>
Mon, 8 May 2017 03:18:19 +0000
(12:18 +0900)
Identified via Coverity.
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/pack-redundant.c
patch
|
blob
|
history
diff --git
a/builtin/pack-redundant.c
b/builtin/pack-redundant.c
index 72c815844dd2abe7f2b4bc5a641eb692d2a45103..cb1df1c7614b4a91f2ed39ffe1f31dfdbcbe793e 100644
(file)
--- a/
builtin/pack-redundant.c
+++ b/
builtin/pack-redundant.c
@@
-442,6
+442,7
@@
static void minimize(struct pack_list **min)
/* return if there are no objects missing from the unique set */
if (missing->size == 0) {
*min = unique;
+ free(missing);
return;
}
git clone https://git.99rst.org/PROJECT