diff --git a/plugins/dbus.c b/plugins/dbus.c index 905c821..d53df6a 100644 --- a/plugins/dbus.c +++ b/plugins/dbus.c @@ -2133,8 +2133,10 @@ dbusRegisterOptions (DBusConnection *connection, option = dbusGetOptionsFromPath (d, &path[3], NULL, NULL, &nOptions); - if (!option) + if (!option) { + free(path); return FALSE; + } while (nOptions--) { @@ -2145,6 +2147,8 @@ dbusRegisterOptions (DBusConnection *connection, option++; } + free(path); + return TRUE; }