You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2004/10/13 04:18:44 UTC
svn commit: rev 54722 - in spamassassin/trunk/lib/Mail: . SpamAssassin
Author: jm
Date: Tue Oct 12 19:18:44 2004
New Revision: 54722
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin.pm
spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm
Log:
throw in an undef or two, to ensure string allocations are really freed; otherwise the buffer may be kept for the 'next' call to that function
Modified: spamassassin/trunk/lib/Mail/SpamAssassin.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin.pm Tue Oct 12 19:18:44 2004
@@ -1328,6 +1328,8 @@
$self->{conf}->parse_rules ($self->{config_text});
$self->{conf}->finish_parsing ();
delete $self->{conf}->{main}; # to allow future GC'ing
+
+ undef $self->{config_text}; # ensure it's actually freed
delete $self->{config_text};
# Initialize the Bayes subsystem
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm Tue Oct 12 19:18:44 2004
@@ -913,6 +913,8 @@
# Clean ourself up
$self->finish_metadata();
+ undef $self->{pristine_headers};
+ undef $self->{pristine_body};
delete $self->{pristine_headers};
delete $self->{pristine_body};
delete $self->{text_decoded};