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
branch: reset instead of release a strbuf
[git-core/git.git]
/
commit-slab.h
diff --git
a/commit-slab.h
b/commit-slab.h
index
42d16dc
..
333d81e
100644
(file)
--- a/
commit-slab.h
+++ b/
commit-slab.h
@@
-82,8
+82,7
@@
static MAYBE_UNUSED void clear_ ##slabname(struct slabname *s) \
for (i = 0; i < s->slab_count; i++) \
free(s->slab[i]); \
s->slab_count = 0; \
- free(s->slab); \
- s->slab = NULL; \
+ FREE_AND_NULL(s->slab); \
} \
\
static MAYBE_UNUSED elemtype *slabname## _at_peek(struct slabname *s, \