summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--btrfs-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btrfs-image.c b/btrfs-image.c
index 6feeb46c..af5437b4 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -2598,6 +2598,7 @@ static int restore_metadump(const char *input, FILE *out, int old_restore,
if (stat(target, &st)) {
fprintf(stderr, "statting %s failed\n", target);
close_ctree(info->chunk_root);
+ free(cluster);
return 1;
}