OSDN Git Service

diff.c: emit_diff_symbol learns DIFF_SYMBOL_CONTEXT_FRAGINFO
[git-core/git.git] / sha1-array.c
index 7d646ab..838b3bf 100644 (file)
@@ -35,8 +35,7 @@ int oid_array_lookup(struct oid_array *array, const struct object_id *oid)
 
 void oid_array_clear(struct oid_array *array)
 {
-       free(array->oid);
-       array->oid = NULL;
+       FREE_AND_NULL(array->oid);
        array->nr = 0;
        array->alloc = 0;
        array->sorted = 0;