grep: remove redundant "fixed" field re-assignment to 0
[gitweb.git] / ref-filter.c
index ab32bc9c3145c85c839c660c54b61f13fe9cb51a..72e6cb8ecc3e46481239314d27f48a1c8a392518 100644 (file)
@@ -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;
 }