[patch] plug PL_sh_path leak
authorDoug MacEachern <dougm@covalent.net>
Thu, 2 Aug 2001 20:54:08 +0000 (13:54 -0700)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 3 Aug 2001 12:10:32 +0000 (12:10 +0000)
Message-ID: <Pine.LNX.4.21.0108022043040.8991-100000@mako.covalent.net>

p4raw-id: //depot/perl@11561

sv.c

diff --git a/sv.c b/sv.c
index 9dd85d7..7fbe14a 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -9927,7 +9927,7 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
     PL_origalen                = proto_perl->Iorigalen;
     PL_pidstatus       = newHV();                      /* XXX flag for cloning? */
     PL_osname          = SAVEPV(proto_perl->Iosname);
-    PL_sh_path         = SAVEPV(proto_perl->Ish_path);
+    PL_sh_path         = proto_perl->Ish_path; /* XXX never deallocated */
     PL_sighandlerp     = proto_perl->Isighandlerp;