From 322eae137bf2df55104c29c8060fdf76b0e9ffc1 Mon Sep 17 00:00:00 2001 From: Alex Young Date: Thu, 21 Jun 2012 15:55:48 +0100 Subject: [PATCH] Add a missed free() --- src/ioutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ioutil.c b/src/ioutil.c index 75c944f..72c516e 100644 --- a/src/ioutil.c +++ b/src/ioutil.c @@ -40,6 +40,7 @@ struct bitset_mapping* build_allocation_map(int fd, uint64_t size, int resolutio /* realloc makes valgrind complain a lot */ memcpy(fiemap, fiemap_count, sizeof(struct fiemap)); + free( fiemap_count ); fiemap->fm_extent_count = fiemap->fm_mapped_extents; fiemap->fm_mapped_extents = 0;