summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-test.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 11:14:53 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-02-26 11:14:53 +0000
commit21a038269e8e2264b149e50355e6e18ccba1d334 (patch)
tree6e50133395bbfba07de60a23f8da501eeca26c41 /hcid/dbus-test.c
parent695443f8d5e0da5fbff3b44279a0ed6abafdf3bb (diff)
More glib memory allocation changes
Diffstat (limited to 'hcid/dbus-test.c')
-rw-r--r--hcid/dbus-test.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hcid/dbus-test.c b/hcid/dbus-test.c
index 1794f276..31b1392e 100644
--- a/hcid/dbus-test.c
+++ b/hcid/dbus-test.c
@@ -95,11 +95,7 @@ static struct audit *audit_new(DBusConnection *conn, DBusMessage *msg,
audit = g_new0(struct audit, 1);
- audit->requestor = strdup(requestor);
- if (!audit->requestor) {
- free(audit);
- return NULL;
- }
+ audit->requestor = g_strdup(requestor);
bacpy(&audit->peer, peer);
bacpy(&audit->local, local);