Squash a valgrind error caused by debug output

This commit is contained in:
Alex Young
2012-06-21 11:55:21 +01:00
parent 4e8a9670e5
commit 80fff4e0e6

View File

@@ -54,7 +54,7 @@ struct bitset_mapping* build_allocation_map(int fd, uint64_t size, int resolutio
); );
} }
for (i=0; i<16; i++) { for (i=0; i<(size/resolution); i++) {
debug("map[%d] = %d%d%d%d%d%d%d%d", debug("map[%d] = %d%d%d%d%d%d%d%d",
i, i,
(allocation_map->bits[i] & 1) == 1, (allocation_map->bits[i] & 1) == 1,
@@ -68,6 +68,7 @@ struct bitset_mapping* build_allocation_map(int fd, uint64_t size, int resolutio
); );
} }
free(fiemap); free(fiemap);
return allocation_map; return allocation_map;