summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-14 15:05:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-02-14 15:05:38 +0000
commitc4a2fd1a6f3d0c03ef36d62769626507e9118be2 (patch)
treee0e7f957491c1212f7e831064eb540f3ddebe21c /op.c
parent7e623da313ab504bf323b0f65cb47dca22423be3 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 2c03377230..ab5041fb9e 100644
--- a/op.c
+++ b/op.c
@@ -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;