Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
midx: fix broken free() in close_midx()
[gitweb.git]
/
midx.c
diff --git
a/midx.c
b/midx.c
index f3e8dbc10820303436c07126b85d6024d2fb3e56..999717b96f6b30b4614ee2fb51417e10db6cc55d 100644
(file)
--- a/
midx.c
+++ b/
midx.c
@@
-190,7
+190,7
@@
static void close_midx(struct multi_pack_index *m)
for (i = 0; i < m->num_packs; i++) {
if (m->packs[i]) {
close_pack(m->packs[i]);
- free(m->packs);
+ free(m->packs
[i]
);
}
}
FREE_AND_NULL(m->packs);