/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert trivial cases to ALLOC_ARRAY
[git/git.git]
/
builtin
/
pack-redundant.c
diff --git
a/builtin/pack-redundant.c
b/builtin/pack-redundant.c
index
d0532f6
..
72c8158
100644
(file)
--- a/
builtin/pack-redundant.c
+++ b/
builtin/pack-redundant.c
@@
-53,7
+53,7
@@
static inline struct llist_item *llist_item_get(void)
free_nodes = free_nodes->next;
} else {
int i = 1;
-
new = xmalloc(sizeof(struct llist_item) *
BLKSIZE);
+
ALLOC_ARRAY(new,
BLKSIZE);
for (; i < BLKSIZE; i++)
llist_item_put(&new[i]);
}