From 23e4978e2f07de14449f63320cd5e6b066672b8e Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 17 Mar 2003 02:20:18 +0000 Subject: 2003-03-16 Havoc Pennington * bus/dispatch.c (bus_dispatch_test): remove double-unrefs of connections * dbus/dbus-address.c (create_entry): fix OOM handling when failing to alloc entry->method --- dbus/dbus-address.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dbus') diff --git a/dbus/dbus-address.c b/dbus/dbus-address.c index 87a99bd8..ef8a51da 100644 --- a/dbus/dbus-address.c +++ b/dbus/dbus-address.c @@ -98,7 +98,10 @@ create_entry (void) return NULL; if (!_dbus_string_init (&entry->method, _DBUS_INT_MAX)) - dbus_free (entry); + { + dbus_free (entry); + return NULL; + } return entry; } -- cgit