unpack_entry: avoid freeing objects in base cache
[gitweb.git] / sha1_file.c
index b220a470f9800e0e1120ede593dcf775921f633f..a016a699f92b0f9ba9b1b8e408ed4b9bc27b4eef 100644 (file)
@@ -2040,7 +2040,6 @@ void *unpack_entry(struct packed_git *p, off_t obj_offset,
                        error("failed to unpack compressed delta "
                              "at offset %"PRIuMAX" from %s",
                              (uintmax_t)curpos, p->pack_name);
-                       free(base);
                        data = NULL;
                        continue;
                }