summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-06-26 15:25:45 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-26 15:25:45 +0000
commit3f83dd72f21792ca0fcbec90728c3cad57c66994 (patch)
tree315df262f264557fcbaee5bd83df50ce96bc90f2 /pp_hot.c
parentc4e0013e5d57314c227d8a847d01c4435bd8ad14 (diff)
downloadperl-3f83dd72f21792ca0fcbec90728c3cad57c66994.tar.gz
Let's not leak.
p4raw-id: //depot/perl@17362
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 526468df81..7837f6409b 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1987,7 +1987,7 @@ PP(pp_subst)
doutf8 = DO_UTF8(dstr);
/* replacement needing upgrading? */
if (DO_UTF8(TARG) && !doutf8) {
- SV *nsv = newSVpvn(c, clen);
+ SV *nsv = sv_2mortal(newSVpvn(c, clen));
if (PL_encoding)
sv_recode_to_utf8(nsv, PL_encoding);
else