mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-31 01:41:41 +00:00
btrfs-progs: image: fix minor resource leak
It's on error exit path. Resolves-coverity-id: 1354246 Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
048f6274ff
commit
3652782c3b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user