This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don’t leak the source for evalbytes($utf8)
authorFather Chrysostomos <sprout@cpan.org>
Sun, 6 Nov 2011 22:05:49 +0000 (14:05 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 6 Nov 2011 22:24:01 +0000 (14:24 -0800)
pp_ctl.c

index abd93ea..8a80792 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -4157,6 +4157,7 @@ PP(pp_entereval)
        /* Don’t modify someone else’s scalar */
        STRLEN len;
        sv = newSVsv(sv);
+       (void)sv_2mortal(sv);
        SvPVbyte_force(sv,len);
        lex_flags |= LEX_START_COPIED;
     }