mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
filters: fix memleak on mpath filter destroy
Missing free() leaks filter structure.
This commit is contained in:
parent
3b24c0fe4e
commit
30050769b1
@ -1,5 +1,6 @@
|
|||||||
Version 2.03.14 -
|
Version 2.03.14 -
|
||||||
==================================
|
==================================
|
||||||
|
Fix memleak in mpath filter.
|
||||||
Support newer location for VDO statistics.
|
Support newer location for VDO statistics.
|
||||||
Add support for VDO async-unsage write policy.
|
Add support for VDO async-unsage write policy.
|
||||||
Improve lvm_import_vdo script.
|
Improve lvm_import_vdo script.
|
||||||
|
@ -37,6 +37,8 @@ static void _destroy(struct dev_filter *f)
|
|||||||
{
|
{
|
||||||
if (f->use_count)
|
if (f->use_count)
|
||||||
log_error(INTERNAL_ERROR "Destroying mpath filter while in use %u times.", f->use_count);
|
log_error(INTERNAL_ERROR "Destroying mpath filter while in use %u times.", f->use_count);
|
||||||
|
|
||||||
|
free(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dev_filter *mpath_filter_create(struct dev_types *dt)
|
struct dev_filter *mpath_filter_create(struct dev_types *dt)
|
||||||
|
Loading…
Reference in New Issue
Block a user