From: Syam Sidhardhan Date: Tue, 3 Dec 2019 09:48:42 +0000 (+0530) Subject: client: Fix memory leak X-Git-Tag: accepted/tizen/unified/20210607.124421~289 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1798bf2bd0f0a7b41f4eb01ff7e82b7da9f2f646;p=platform%2Fupstream%2Fbluez.git client: Fix memory leak Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- diff --git a/client/main.c b/client/main.c index 2c6a350..5add8b8 100644 --- a/client/main.c +++ b/client/main.c @@ -1798,11 +1798,11 @@ static void remove_device(GDBusProxy *proxy) { char *path; - path = g_strdup(g_dbus_proxy_get_path(proxy)); - if (!default_ctrl) return; + path = g_strdup(g_dbus_proxy_get_path(proxy)); + if (g_dbus_proxy_method_call(default_ctrl->proxy, "RemoveDevice", remove_device_setup, remove_device_reply,