[PATCH] Fix local pull that uses packs.
[gitweb.git] / pack-objects.c
index ed24a33300e6baa2b64c5f6c28594494a0b3ebdf..3d622787cc554eb2936995441e4591ec1986bded 100644 (file)
@@ -382,6 +382,10 @@ static void find_deltas(struct object_entry **list, int window, int depth)
                if (idx >= window)
                        idx = 0;
        }
+
+       for (i = 0; i < window; ++i)
+               free(array[i].data);
+       free(array);
 }
 
 int main(int argc, char **argv)