31 lines
810 B
Diff
31 lines
810 B
Diff
|
|
From 6c0ae13b509975e67c65d690d388afccc78a0b63 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
||
|
|
Date: Fri, 25 Sep 2020 14:23:24 +0200
|
||
|
|
Subject: [PATCH 10/15] dm: Fix memory leak in the DM plugin and DM logging
|
||
|
|
redirect function
|
||
|
|
|
||
|
|
conflict:
|
||
|
|
1. there is no dm_logging.c in v2.24
|
||
|
|
|
||
|
|
Signed-off-by: Vojtech Trefny <vtrefny@redhat.com>
|
||
|
|
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
|
||
|
|
---
|
||
|
|
src/plugins/dm.c | 1 +
|
||
|
|
1 file changed, 1 insertion(+)
|
||
|
|
|
||
|
|
diff --git a/src/plugins/dm.c b/src/plugins/dm.c
|
||
|
|
index 93a47f4..e8f0f4e 100644
|
||
|
|
--- a/src/plugins/dm.c
|
||
|
|
+++ b/src/plugins/dm.c
|
||
|
|
@@ -246,6 +246,7 @@ gchar* bd_dm_name_from_node (const gchar *dm_node, GError **error) {
|
||
|
|
|
||
|
|
if (!success) {
|
||
|
|
/* errror is already populated */
|
||
|
|
+ g_free (ret);
|
||
|
|
return NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|