You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/04/05 04:23:39 UTC

svn commit: rev 9864 - incubator/spamassassin/trunk/spamc

Author: felicity
Date: Sun Apr  4 19:23:38 2004
New Revision: 9864

Modified:
   incubator/spamassassin/trunk/spamc/libspamc.c
Log:
bug 3212: we may sometimes attempt to free the same memory segment twice.  do better checking to make sure we don't do that.

Modified: incubator/spamassassin/trunk/spamc/libspamc.c
==============================================================================
--- incubator/spamassassin/trunk/spamc/libspamc.c	(original)
+++ incubator/spamassassin/trunk/spamc/libspamc.c	Sun Apr  4 19:23:38 2004
@@ -1151,7 +1151,7 @@
 
 void message_cleanup(struct message *m)
 {
-    if (m->out != NULL && m->out != m->raw)
+    if (m->out != NULL && m->pre != NULL && m->out != m->pre+m->pre_len)
 	free(m->out);
     if (m->raw != NULL)
 	free(m->raw);