Fix the svace issue - memory leak 90/151190/1 accepted/tizen/4.0/unified/20170921.073538 submit/tizen_4.0/20170920.095002
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 20 Sep 2017 07:32:27 +0000 (16:32 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 20 Sep 2017 07:32:27 +0000 (16:32 +0900)
Change-Id: I3be63f35fe983d4ba882eec929402c31384124be
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-api/bt-otp.c

index 7d7a7f0..c748490 100644 (file)
@@ -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);
        }
 }