develooper Front page | perl.perl5.porters | Postings from August 2001

[patch] plug PL_cshname leak

Thread Next
From:
Doug MacEachern
Date:
August 2, 2001 20:57
Subject:
[patch] plug PL_cshname leak
Message ID:
Pine.LNX.4.21.0108022058020.8991-100000@mako.covalent.net
same issue as PL_sh_name..

Index: sv.c
===================================================================
RCS file: /usr/local/cvs_repository/perl-current-mirror/sv.c,v
retrieving revision 1.1.1.69
diff -u -r1.1.1.69 sv.c
--- sv.c	2001/08/02 00:53:01	1.1.1.69
+++ sv.c	2001/08/03 03:57:01
@@ -9937,7 +9937,7 @@
 
 #ifdef CSH
     PL_cshlen		= proto_perl->Icshlen;
-    PL_cshname		= SAVEPVN(proto_perl->Icshname, PL_cshlen);
+    PL_cshname		= proto_perl->Icshname; /* XXX never deallocated */
 #endif
 
     PL_lex_state	= proto_perl->Ilex_state;


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About