dbus/glib dbus-gidl.c,1.15,1.16

Colin Walters walters at freedesktop.org
Tue Aug 2 02:12:55 EST 2005


Update of /cvs/dbus/dbus/glib
In directory gabe:/tmp/cvs-serv23618/glib

Modified Files:
	dbus-gidl.c 
Log Message:
2005-08-01  Colin Walters  <walters at verbum.org>

	Patch from Joe Markus Clarke:	
	
	* glib/dbus-gidl.c (property_info_unref, arg_info_unref): Fix
	use-after-free.


Index: dbus-gidl.c
===================================================================
RCS file: /cvs/dbus/dbus/glib/dbus-gidl.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- dbus-gidl.c	9 Jul 2005 17:52:52 -0000	1.15
+++ dbus-gidl.c	1 Aug 2005 16:12:53 -0000	1.16
@@ -662,8 +662,8 @@
   info->base.refcount -= 1;
   if (info->base.refcount == 0)
     {
-      base_info_free (info);
       g_free (info->type);
+      base_info_free (info);
     }
 }
 
@@ -722,8 +722,8 @@
   if (info->base.refcount == 0)
     {
       g_hash_table_destroy (info->annotations);
-      base_info_free (info);
       g_free (info->type);
+      base_info_free (info);
     }
 }
 



More information about the dbus-commit mailing list