Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ab/wildmatch'
[gitweb.git]
/
ref-filter.c
diff --git
a/ref-filter.c
b/ref-filter.c
index 718def443a0862c5ba90ce45b24abc22fa0aaf5b..e0578d8b5ae1a467082ee94ff798d054db1450bf 100644
(file)
--- a/
ref-filter.c
+++ b/
ref-filter.c
@@
-1891,8
+1891,7
@@
void ref_array_clear(struct ref_array *array)
for (i = 0; i < array->nr; i++)
free_array_item(array->items[i]);
- free(array->items);
- array->items = NULL;
+ FREE_AND_NULL(array->items);
array->nr = array->alloc = 0;
}