From: Oskar Świtalski Date: Tue, 8 Dec 2015 08:15:25 +0000 (+0100) Subject: Fix memory leak X-Git-Tag: accepted/tizen/mobile/20151209.024819^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3900fe2afc11ff41b1b7e4bcbc5326d6cb52b47b;p=platform%2Fcore%2Fappfw%2Fevent-system.git Fix memory leak Strings from Cynara gdbus helper lib should be freed with g_free() Change-Id: I1131bb38026961c7abe27f46b6eafa2c025744c2 Signed-off-by: Oskar Świtalski --- diff --git a/src/esd_main.c b/src/esd_main.c index 2093cf5..ba3dd4e 100644 --- a/src/esd_main.c +++ b/src/esd_main.c @@ -1450,6 +1450,9 @@ static void check_privilege_valid_method_call(GDBusConnection *connection, const } out: + g_free(client); + g_free(user); + g_free(session); param = g_variant_new("(i)", result); _D("event_name(%s), result(%d)", event_name, result); g_dbus_method_invocation_return_value(invocation, param);