From e03b691f62009b4196abc109a49093e43ba81817 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 20 Sep 2017 16:32:27 +0900 Subject: [PATCH] Fix the svace issue - memory leak Change-Id: I3be63f35fe983d4ba882eec929402c31384124be Signed-off-by: DoHyun Pyun --- bt-api/bt-otp.c | 3 +++ 1 file changed, 3 insertions(+) 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); } } -- 2.7.4