{
GError *g_error = NULL;
GVariant *params;
+ GVariant *result = NULL;
const gchar *name;
#if !GLIB_CHECK_VERSION(2, 36, 0)
name = g_dbus_connection_get_unique_name(netconfig_bus);
DNSSD_LOGD("Unique DBUS Name %s", name);
params = g_variant_new("(s)", name);
- g_dbus_connection_call_sync(netconfig_bus,
+ result = g_dbus_connection_call_sync(netconfig_bus,
NETCONFIG_SERVICE,
NETCONFIG_NETWORK_PATH,
NETCONFIG_NETWORK_INTERFACE,
NULL,
&g_error);
+ g_variant_unref(result);
+
if (g_error != NULL) {
DNSSD_LOGE("g_dbus_connection_call_sync() failed. "
"error [%d: %s]", g_error->code, g_error->message);