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
diff.c: emit_diff_symbol learns DIFF_SYMBOL_CONTEXT_FRAGINFO
[git-core/git.git]
/
sha1-array.c
diff --git
a/sha1-array.c
b/sha1-array.c
index
7d646ab
..
838b3bf
100644
(file)
--- a/
sha1-array.c
+++ b/
sha1-array.c
@@
-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;