[wifi-tdls]: Fixed Memory Leak issue 15/59215/2
authorManeesh Jain <maneesh.jain@samsung.com>
Thu, 11 Feb 2016 11:20:04 +0000 (16:50 +0530)
committermaneesh jain <maneesh.jain@samsung.com>
Thu, 11 Feb 2016 11:26:07 +0000 (03:26 -0800)
Description:g_variant_print() return
a newly-allocated string holding the result. It was not getting free.
As this is only informative log, so no more required.

Change-Id: Ia9de2609f18d96dddf146ff4978e53b9198ad883
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
src/wifi-tdls.c

index de2ca17..dc38441 100755 (executable)
@@ -119,7 +119,6 @@ gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context)
        }\r
 \r
        g_variant_get(message, "(&s)", &reply_str);\r
-       INFO("param [%s]", g_variant_print(message,TRUE));\r
        INFO("TDLS reply: [%s]", reply_str);\r
        INFO("TDLS :peer_mac [%s]", peer_mac);\r
 \r