[patch] small leak

Brian Mattern brian.mattern at gmail.com
Sat Feb 10 23:09:01 PST 2007


dbus_message_unref() won't free a DBusError... :)

Brian
-------------- next part --------------
Index: dbus-pending-call.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-pending-call.c,v
retrieving revision 1.24
diff -u -r1.24 dbus-pending-call.c
--- dbus-pending-call.c	21 Oct 2006 23:09:18 -0000	1.24
+++ dbus-pending-call.c	11 Feb 2007 07:04:31 -0000
@@ -399,7 +399,7 @@
       
   if (pending->timeout_link)
     {
-      dbus_message_unref ((DBusMessage *)pending->timeout_link->data);
+      dbus_error_free ((DBusMessage *)pending->timeout_link->data);
       _dbus_list_free_link (pending->timeout_link);
       pending->timeout_link = NULL;
     }


More information about the dbus mailing list