From 662175f3ab2e7ee285eea791e1c68480cd468941 Mon Sep 17 00:00:00 2001 From: Yunmi Ha Date: Thu, 1 Dec 2016 18:12:51 +0900 Subject: [PATCH] Fix memory leak Dynamic memory referenced by 'key' was allocated. But it was not freed when error was occured at other side. Change-Id: I18dde46af50f94c5113d102e445711c0083946c0 Signed-off-by: Yunmi Ha --- src/common/gum-config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/gum-config.c b/src/common/gum-config.c index 7ef69f3..9e8e4b3 100755 --- a/src/common/gum-config.c +++ b/src/common/gum-config.c @@ -350,6 +350,7 @@ _load_config ( WARN ("fail to read key '%s/%s': %s", groups[i], keys[j], err->message); g_error_free (err); + g_free(key); continue; } -- 2.7.4