diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-02-14 15:05:38 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-02-14 15:05:38 +0000 |
commit | c4a2fd1a6f3d0c03ef36d62769626507e9118be2 (patch) | |
tree | e0e7f957491c1212f7e831064eb540f3ddebe21c /op.c | |
parent | 7e623da313ab504bf323b0f65cb47dca22423be3 (diff) | |
download | perl-c4a2fd1a6f3d0c03ef36d62769626507e9118be2.tar.gz |
Fix leak when issuing new warning implemented by #33305
p4raw-id: //depot/perl@33308
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1075,7 +1075,7 @@ Perl_scalarvoid(pTHX_ OP *o) no_bareword_allowed(o); else { if (ckWARN(WARN_VOID)) { - SV* msv = Perl_newSVpvf(aTHX_ "a constant (%"SVf")", sv); + SV* msv = sv_2mortal(Perl_newSVpvf(aTHX_ "a constant (%"SVf")", sv)); useless = SvPV_nolen(msv); if (o->op_private & OPpCONST_ARYBASE) useless = NULL; |