Fix the case when the requested name is already in use
[framework/connectivity/connman.git] / gdbus / watch.c
index 75e4210..1d479fa 100644 (file)
@@ -535,6 +535,8 @@ static void check_service(DBusConnection *connection, const char *name,
 
        dbus_pending_call_set_notify(call, service_reply, data, NULL);
 
+       dbus_pending_call_unref(call);
+
 done:
        dbus_message_unref(message);
 }