From 21a038269e8e2264b149e50355e6e18ccba1d334 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 26 Feb 2007 11:14:53 +0000 Subject: More glib memory allocation changes --- hcid/dbus-test.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hcid/dbus-test.c') 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); -- cgit