summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2008-01-03 20:26:05 +0100
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2008-01-04 01:22:22 +0000
commit22f1178fc6ea7d78b2fce6108796ec629a70476b (patch)
treedb1b5b4ee2350f41eef0952ef108e64f43f5641b /pp_sys.c
parent6e449a3ab1e3bd9d7e138ca681c733e57d4daa49 (diff)
downloadperl-22f1178fc6ea7d78b2fce6108796ec629a70476b.tar.gz
Re: SV leak?
Message-ID: <477D28BD.5060801@profvince.com> Mortalize SVs that are being pushed on the stack. Try to use specialized macros for pushing mortals. p4raw-id: //depot/perl@32822
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 3ee3384bac..66ca0fb50d 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -4701,7 +4701,7 @@ PP(pp_ghostent)
}
#else
if (hent->h_addr)
- PUSHs(newSVpvn(hent->h_addr, len));
+ mPUSHp(hent->h_addr, len);
else
PUSHs(sv_mortalcopy(&PL_sv_no));
#endif /* h_addr */