This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[patch] plug PL_cshname leak
[perl5.git] / sv.c
diff --git a/sv.c b/sv.c
index 7fbe14a..33a87b8 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -9937,7 +9937,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
 
 #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;