mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-17 12:35:19 +00:00
btrfs-progs: fix minor leak of dev_info in btrfs_scan_kernel
Resolves-coverity-id: 1127098 Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
08dfef4fbd
commit
f8a24717b1
@ -516,8 +516,10 @@ static int btrfs_scan_kernel(void *search)
|
||||
continue;
|
||||
ret = get_fs_info(mnt->mnt_dir, &fs_info_arg,
|
||||
&dev_info_arg);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
kfree(dev_info_arg);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (get_label_mounted(mnt->mnt_dir, label)) {
|
||||
kfree(dev_info_arg);
|
||||
|
Loading…
Reference in New Issue
Block a user