backport upstream patches - epoch2 to fix several problems Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
25 lines
729 B
Diff
25 lines
729 B
Diff
From bc7fddbe15f21eba45d55b3d9a9feaabf954a309 Mon Sep 17 00:00:00 2001
|
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
Date: Fri, 25 Sep 2020 14:26:24 +0200
|
|
Subject: [PATCH 12/15] kbd: Fix memory leak
|
|
|
|
---
|
|
src/plugins/kbd.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/plugins/kbd.c b/src/plugins/kbd.c
|
|
index a2908ec..41593be 100644
|
|
--- a/src/plugins/kbd.c
|
|
+++ b/src/plugins/kbd.c
|
|
@@ -1254,6 +1254,7 @@ static gboolean get_cache_size_used (const gchar *cache_dev_sys, guint64 *size,
|
|
g_io_channel_unref (file);
|
|
|
|
if (!found) {
|
|
+ g_free (line);
|
|
g_set_error (error, BD_KBD_ERROR, BD_KBD_ERROR_BCACHE_INVAL,
|
|
"Failed to get cache usage data");
|
|
return FALSE;
|
|
--
|
|
1.8.3.1
|
|
|