Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fix for more minor memory leaks
[gitweb.git]
/
index-pack.c
diff --git
a/index-pack.c
b/index-pack.c
index 60173d51925dd67d0816eb821c9600e02d3c232c..2f149a40fdc40a84d33420fc363fbf7edafe1712 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-815,6
+815,10
@@
int main(int argc, char **argv)
free(objects);
free(index_name_buf);
free(keep_name_buf);
+ if (pack_name == NULL)
+ free(curr_pack);
+ if (index_name == NULL)
+ free(curr_index);
return 0;
}