Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
object_array: use `object_array_clear()`, not `free()`
[gitweb.git]
/
builtin
/
reflog.c
diff --git
a/builtin/reflog.c
b/builtin/reflog.c
index e237d927a0881b56135a21a1b0041e7de6ff39ab..6b34f23e782805159f3de5ff0dcfaac9db910adc 100644
(file)
--- a/
builtin/reflog.c
+++ b/
builtin/reflog.c
@@
-182,8
+182,8
@@
static int commit_is_complete(struct commit *commit)
found.objects[i].item->flags |= SEEN;
}
/* free object arrays */
-
free(study.objects
);
-
free(found.objects
);
+
object_array_clear(&study
);
+
object_array_clear(&found
);
return !is_incomplete;
}