Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/build-with-asan'
[gitweb.git]
/
builtin
/
unpack-objects.c
diff --git
a/builtin/unpack-objects.c
b/builtin/unpack-objects.c
index 193f8b9d57f0759c38004fd1d99f660919ac30e3..689a29fac1a50df6e5b8fc3cda617ef1c6d060b3 100644
(file)
--- a/
builtin/unpack-objects.c
+++ b/
builtin/unpack-objects.c
@@
-113,8
+113,7
@@
static void *get_data(unsigned long size)
break;
if (ret != Z_OK) {
error("inflate returned %d", ret);
- free(buf);
- buf = NULL;
+ FREE_AND_NULL(buf);
if (!recover)
exit(1);
has_errors = 1;