Blame SOURCES/0016-filters-fix-memleak-on-mpath-filter-destroy.patch

9db2f0
From 4d5df2d0bc0978d0eac6f8700b89ac4f80fdd914 Mon Sep 17 00:00:00 2001
9db2f0
From: Zdenek Kabelac <zkabelac@redhat.com>
9db2f0
Date: Sun, 12 Sep 2021 16:13:27 +0200
9db2f0
Subject: [PATCH] filters: fix memleak on mpath filter destroy
9db2f0
9db2f0
Missing free() leaks filter structure.
9db2f0
9db2f0
(cherry picked from commit 30050769b1490e293d9e0f7ed37d83c3e56bb6b3)
9db2f0
---
9db2f0
 WHATS_NEW                  | 1 +
9db2f0
 lib/filters/filter-mpath.c | 2 ++
9db2f0
 2 files changed, 3 insertions(+)
9db2f0
9db2f0
diff --git a/WHATS_NEW b/WHATS_NEW
9db2f0
index 958e745..91cfc52 100644
9db2f0
--- a/WHATS_NEW
9db2f0
+++ b/WHATS_NEW
9db2f0
@@ -1,5 +1,6 @@
9db2f0
 Version 2.03.14 - 
9db2f0
 ==================================
9db2f0
+  Fix memleak in mpath filter.
9db2f0
   Support newer location for VDO statistics.
9db2f0
 
9db2f0
 Version 2.03.13 - 11th August 2021
9db2f0
diff --git a/lib/filters/filter-mpath.c b/lib/filters/filter-mpath.c
9db2f0
index 982e234..7644a5b 100644
9db2f0
--- a/lib/filters/filter-mpath.c
9db2f0
+++ b/lib/filters/filter-mpath.c
9db2f0
@@ -37,6 +37,8 @@ static void _destroy(struct dev_filter *f)
9db2f0
 {
9db2f0
 	if (f->use_count)
9db2f0
 		log_error(INTERNAL_ERROR "Destroying mpath filter while in use %u times.", f->use_count);
9db2f0
+
9db2f0
+	free(f);
9db2f0
 }
9db2f0
 
9db2f0
 struct dev_filter *mpath_filter_create(struct dev_types *dt)
9db2f0
-- 
9db2f0
1.8.3.1
9db2f0