Fix the svace issue - memory leak
[platform/core/connectivity/bluetooth-frwk.git] / 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);
        }
 }