[evolution-patches] one line libedataserver leak fix.



found this while valgrinding.


Index: libedataserver/e-source-group.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/libedataserver/e-source-group.c,v
retrieving revision 1.4
diff -u -r1.4 e-source-group.c
--- libedataserver/e-source-group.c	9 Jan 2004 20:05:34 -0000	1.4
+++ libedataserver/e-source-group.c	24 Feb 2004 23:41:02 -0000
@@ -253,6 +253,9 @@
 	e_source_group_set_readonly (new, readonly_str && !strcmp (readonly_str, "yes"));
 
  done:
+	if (uid != NULL)
+		xmlFree (uid);
+
 	if (name != NULL)
 		xmlFree (name);
 	if (base_uri != NULL)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/ChangeLog,v
retrieving revision 1.100
diff -u -r1.100 ChangeLog
--- ChangeLog	13 Feb 2004 20:09:05 -0000	1.100
+++ ChangeLog	24 Feb 2004 23:41:02 -0000
@@ -1,3 +1,8 @@
+2004-02-24  Chris Toshok  <toshok ximian com>
+
+	* libedataserver/e-source-group.c
+	(e_source_group_new_from_xmldoc): don't leak uid.
+
 2004-02-13  Chris Toshok  <toshok ximian com>
 
 	* libedataserver/Makefile.am (libedataserver_la_LIBADD): use


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]