Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff.c: emit_diff_symbol learns DIFF_SYMBOL_FILEPAIR_{PLUS, MINUS}
[gitweb.git]
/
ref-filter.c
diff --git
a/ref-filter.c
b/ref-filter.c
index ab32bc9c3145c85c839c660c54b61f13fe9cb51a..72e6cb8ecc3e46481239314d27f48a1c8a392518 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;
}