agent: Fix D-Bus reply memory leaks

This commit is contained in:
Syam Sidhardhan 2011-12-06 20:29:17 +05:30 committed by Johan Hedberg
parent c2ab28e661
commit 8a06194b08

View File

@ -504,6 +504,7 @@ static char *get_default_adapter_path(DBusConnection *conn)
fprintf(stderr, "%s\n", err.message);
dbus_error_free(&err);
}
dbus_message_unref(reply);
return NULL;
}
@ -562,6 +563,7 @@ static char *get_adapter_path(DBusConnection *conn, const char *adapter)
fprintf(stderr, "%s\n", err.message);
dbus_error_free(&err);
}
dbus_message_unref(reply);
return NULL;
}