1
0
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:
Zdenek Kabelac 2021-09-12 16:13:27 +02:00
parent 3b24c0fe4e
commit 30050769b1
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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)