Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ref-filter: free memory from used_atom
[gitweb.git]
/
ref-filter.c
diff --git
a/ref-filter.c
b/ref-filter.c
index e1bcb4ca8a1977e97b26da47962dfcd3781a021e..70f1d13ab3beb0f6c9be811f57941b307d9efc70 100644
(file)
--- a/
ref-filter.c
+++ b/
ref-filter.c
@@
-1996,6
+1996,10
@@
void ref_array_clear(struct ref_array *array)
{
int i;
+ for (i = 0; i < used_atom_cnt; i++)
+ free((char *)used_atom[i].name);
+ FREE_AND_NULL(used_atom);
+ used_atom_cnt = 0;
for (i = 0; i < array->nr; i++)
free_array_item(array->items[i]);
FREE_AND_NULL(array->items);