[libpst-commits] r74 - trunk

Chris Halls halls at alioth.debian.org
Fri Jan 5 17:24:27 CET 2007


Author: halls
Date: 2007-01-05 17:24:27 +0100 (Fri, 05 Jan 2007)
New Revision: 74

Modified:
   trunk/ChangeLog
   trunk/lspst.c
Log:
lspst: Fix invalid calls to free(f->name) - name is not dynamically allocated.


Index: trunk/lspst.c
===================================================================
--- trunk/lspst.c	(revision 73)
+++ trunk/lspst.c	(revision 74)
@@ -196,7 +196,6 @@
 					if (f->output != NULL)
 						fclose(f->output);
 					free(f->dname);
-					free(f->name);
 					free(f);
 		
 					f = head;
@@ -285,7 +284,6 @@
 					f->dname, f->email_count, f->skip_count, f->stored_count);
 			*/
 
-			free(f->name);
 			free(f->dname);
 			free(f);
 			f = head;
Index: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	(revision 73)
+++ trunk/ChangeLog	(revision 74)
@@ -4,7 +4,7 @@
 	* Map IPM.Task items to PST_TYPE_TASK.
 	* lspst: Add usage mesage and option parsing using getopt
 	  (SourceForge #304199)
-
+    * lspst: Fix invalid free calls
 --
 
 LibPST 0.5.2 (29 December 2006)



More information about the libpst-commits mailing list