diff options
-rw-r--r-- | pack-objects.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pack-objects.c b/pack-objects.c index ed24a33300..3d622787cc 100644 --- a/pack-objects.c +++ b/pack-objects.c @@ -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) |