OSDN Git Service
(root)
/
git-core
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patch-ids.c: use hashmap correctly
[git-core/git.git]
/
object.c
diff --git
a/object.c
b/object.c
index
06ba3a1
..
f818777
100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-377,8
+377,7
@@
void object_array_clear(struct object_array *array)
int i;
for (i = 0; i < array->nr; i++)
object_array_release_entry(&array->objects[i]);
- free(array->objects);
- array->objects = NULL;
+ FREE_AND_NULL(array->objects);
array->nr = array->alloc = 0;
}