From: Yunmi Ha Date: Thu, 1 Dec 2016 09:12:51 +0000 (+0900) Subject: Fix memory leak X-Git-Tag: accepted/tizen/3.0/common/20161209.160650^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=662175f3ab2e7ee285eea791e1c68480cd468941;p=platform%2Fupstream%2Fgumd.git 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 --- 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; }