plug a possible BusClientPolicy leak (FDO Bug #13242)
authorJohn (J5) Palmieri <johnp@redhat.com>
Tue, 15 Jan 2008 00:04:41 +0000 (19:04 -0500)
committerJohn (J5) Palmieri <johnp@redhat.com>
Tue, 15 Jan 2008 00:04:41 +0000 (19:04 -0500)
2008-01-14  John (J5) Palmieri  <johnp@redhat.com>

* patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>

* bus/connection.c (bus_connection_complete): plug a possible
BusClientPolicy leak (FDO Bug #13242)

ChangeLog
bus/connection.c

index 813866b..32beee7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-01-14  John (J5) Palmieri  <johnp@redhat.com>
 
+       * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
+
+       * bus/connection.c (bus_connection_complete): plug a possible 
+       BusClientPolicy leak (FDO Bug #13242)
+
+2008-01-14  John (J5) Palmieri  <johnp@redhat.com>
+
        * patch by Frederic Crozat <fcrozat at mandriva dot com> (FDO Bz#
        13268)
 
index 89d80dd..512a231 100644 (file)
@@ -1306,6 +1306,8 @@ bus_connection_complete (DBusConnection   *connection,
           BUS_SET_OOM (error);
           dbus_free (d->name);
           d->name = NULL;
+          bus_client_policy_unref (d->policy);
+          d->policy = NULL;
           return FALSE;
         }
     }