mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-05 13:18:20 +03:00
Fix memory leak in error path
Release allocated path buffer in error path.
This commit is contained in:
parent
e8ec0ba2e3
commit
9d6d98c900
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.78 -
|
Version 2.02.78 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix memory leak in error path of parse_loop_device_name() from dmsetup.
|
||||||
Fix missing dlclose in _init_formats() error path from init_format call.
|
Fix missing dlclose in _init_formats() error path from init_format call.
|
||||||
Fix missing fclose for _umount() in dmeventd snapshot plugin.
|
Fix missing fclose for _umount() in dmeventd snapshot plugin.
|
||||||
Fix out-of-scope variable usage in process_each_lv().
|
Fix out-of-scope variable usage in process_each_lv().
|
||||||
|
@ -2904,6 +2904,7 @@ static char *parse_loop_device_name(const char *dev, const char *dev_dir)
|
|||||||
return buf;
|
return buf;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
dm_free(buf);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user