RE: Bug report: Memory leak with LWP::UserAgent/HTTP::Request under RH Linux 6.1/7

Curt Powell (curt.powell@sierraridge.com)
Tue, 10 Apr 2001 14:32:43 -0700


I applied the patch and it seems to work.  Thanks!

-----Original Message-----
From: gisle@caliper.ActiveState.com
[mailto:gisle@caliper.ActiveState.com]On Behalf Of Gisle Aas
Sent: Tuesday, April 10, 2001 11:36 AM
To: Curt Powell
Cc: libwww@perl.org
Subject: Re: Bug report: Memory leak with LWP::UserAgent/HTTP::Request
under RH Linux 6.1/7


"Curt Powell" <curt.powell@sierraridge.com> writes:

> Yes, I am using 3.20.  I will attempt to revert to 3.19 and rerun my test.

This patch fixes the leak in 3.20.  Expect to see HTML-Parser-3.21
pretty soon :-(

Regards,
Gisle


Index: hparser.c
===================================================================
RCS file: /cvsroot/libwww-perl/html-parser/hparser.c,v
retrieving revision 2.67
retrieving revision 2.68
diff -u -p -u -r2.67 -r2.68
--- hparser.c	2001/04/06 20:03:24	2.67
+++ hparser.c	2001/04/10 18:33:27	2.68
@@ -1,4 +1,4 @@
-/* $Id: hparser.c,v 2.67 2001/04/06 20:03:24 gisle Exp $
+/* $Id: hparser.c,v 2.68 2001/04/10 18:33:27 gisle Exp $
  *
  * Copyright 1999-2001, Gisle Aas
  * Copyright 1999-2000, Michael A. Chase
@@ -243,6 +243,7 @@ report_event(PSTATE* p_state,
 		SvREFCNT_dec(tagname);
 		return;
 	    }
+	    SvREFCNT_dec(tagname);
 	}
 	else if (p_state->ignoring_element) {
 	    return;