You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by kb...@apache.org on 2017/08/07 14:13:57 UTC

svn commit: r1804338 - /spamassassin/branches/3.4/lib/Mail/SpamAssassin/Message.pm

Author: kb
Date: Mon Aug  7 14:13:56 2017
New Revision: 1804338

URL: http://svn.apache.org/viewvc?rev=1804338&view=rev
Log:
bug 7447: Delete parse_queue in Message::finish() to prevent memory leak.


Modified:
    spamassassin/branches/3.4/lib/Mail/SpamAssassin/Message.pm

Modified: spamassassin/branches/3.4/lib/Mail/SpamAssassin/Message.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/lib/Mail/SpamAssassin/Message.pm?rev=1804338&r1=1804337&r2=1804338&view=diff
==============================================================================
--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Message.pm (original)
+++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Message.pm Mon Aug  7 14:13:56 2017
@@ -628,6 +628,9 @@ sub finish {
   delete $self->{'line_ending'};
   delete $self->{'missing_head_body_separator'};
 
+  # Remove the queue variable, in case the body has not been parsed
+  delete $self->{'parse_queue'};
+
   my @toclean = ( $self );
 
   # Go ahead and clean up all of the Message::Node parts