free GVariant instance after sending the dbus signal 54/168954/2
authorMilind Murhekar <m.murhekar@samsung.com>
Thu, 1 Feb 2018 10:11:52 +0000 (15:41 +0530)
committerMilind Murhekar <m.murhekar@samsung.com>
Mon, 19 Feb 2018 04:52:54 +0000 (04:52 +0000)
Description: This patch frees the memory of GVariant instance
which is used during emiting Dbus signal.

Change-Id: Ie2314e8ffe872f4bd1e1c812b963f2902e9c4965
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
src/tethering.c

index 5b6e216..d0c728f 100755 (executable)
@@ -146,6 +146,7 @@ static void __send_dbus_signal(GDBusConnection *conn, const char *signal_name, c
                ERR("g_dbus_connection_emit_signal is failed because  %s\n", error->message); //LCOV_EXCL_LINE
                g_error_free(error); //LCOV_EXCL_LINE
        }
+       g_variant_unref(message);
 }
 
 static bool __any_tethering_is_enabled(tethering_h tethering)