[PATCH] : small memory leak



	Hi all,
here is a one-liner to correct a memory leak in filter code found by Peter.
Bye
Manu
diff -u /home/manu/prog/balsa-cvs/balsa/libbalsa/filter-funcs.c balsa/libbalsa/filter-funcs.c
--- /home/manu/prog/balsa-cvs/balsa/libbalsa/filter-funcs.c	Tue Jun 11 02:30:54 2002
+++ balsa/libbalsa/filter-funcs.c	Thu Aug 22 10:03:44 2002
@@ -48,6 +48,7 @@
     g_free(reg->string);
     if (reg->compiled) 
 	regfree(reg->compiled);
+    g_free(reg);
 }				/* end condition_regex_free() */
 
 void 


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