mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-26 23:43:09 +00:00
btrfs-progs: restore: fix path leak in copy_metadata
The path lifecycle spans only this function and we have to free it. Resolves-coverity-id: 1295367 Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
9a86668071
commit
a8762e43fd
@ -612,7 +612,7 @@ static int copy_metadata(struct btrfs_root *root, int fd,
|
||||
}
|
||||
}
|
||||
out:
|
||||
btrfs_release_path(path);
|
||||
btrfs_free_path(path);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user