From: DoHyun Pyun Date: Wed, 20 Sep 2017 07:32:27 +0000 (+0900) Subject: Fix the svace issue - memory leak X-Git-Tag: accepted/tizen/4.0/unified/20170921.073538^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=e03b691f62009b4196abc109a49093e43ba81817 Fix the svace issue - memory leak Change-Id: I3be63f35fe983d4ba882eec929402c31384124be Signed-off-by: DoHyun Pyun --- diff --git a/bt-api/bt-otp.c b/bt-api/bt-otp.c index 7d7a7f0..c748490 100644 --- a/bt-api/bt-otp.c +++ b/bt-api/bt-otp.c @@ -274,6 +274,9 @@ static void __new_connection_method(GDBusConnection *connection, event_info->user_data); } + g_free(otc_info->address); + g_free(otc_info); + g_dbus_method_invocation_return_value(invocation, NULL); } }