Merge branch 'jc/perl-git-comment-typofix' into next
[gitweb.git] / builtin / unpack-objects.c
index 193f8b9d57f0759c38004fd1d99f660919ac30e3..689a29fac1a50df6e5b8fc3cda617ef1c6d060b3 100644 (file)
@@ -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;