DBusMessageLoader *loader;
DBusAuth *auth;
DBusCounter *counter;
- char *address_copy;
+ char *address_copy = NULL;
DBusCredentials *creds;
loader = _dbus_message_loader_new ();
if (auth == NULL)
{
_dbus_message_loader_unref (loader);
+
+ if (address_copy != NULL)
+ dbus_free(address_copy);
+
return FALSE;
}
{
_dbus_auth_unref (auth);
_dbus_message_loader_unref (loader);
+
+ if (address_copy != NULL)
+ dbus_free(address_copy);
+
return FALSE;
}
_dbus_counter_unref (counter);
_dbus_auth_unref (auth);
_dbus_message_loader_unref (loader);
+
+ if (address_copy != NULL)
+ dbus_free(address_copy);
+
return FALSE;
}