mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-28 00:12:47 +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:
|
out:
|
||||||
btrfs_release_path(path);
|
btrfs_free_path(path);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user