diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-04-25 22:58:27 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-04-25 22:58:27 +0000 |
commit | 0dd88869d3c6272dc66f202c5be0f40bfb94fccd (patch) | |
tree | 0d0ebfbf7b95ec087f836814f4c10e149b04bfc0 /pp.c | |
parent | 18a945d476bb4c5319db42e3585c9617c125cba5 (diff) | |
download | perl-0dd88869d3c6272dc66f202c5be0f40bfb94fccd.tar.gz |
fix buggy reference count on refs to SVs with autoviv magic
(resulted in C<my @a; $a[1] = 1; print \$_ for @a> and Data::Dumper
accessing free()d memory)
p4raw-id: //depot/perl@3270
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -512,6 +512,8 @@ refto(SV *sv) vivify_defelem(sv); if (!(sv = LvTARG(sv))) sv = &PL_sv_undef; + else + SvREFCNT_inc(sv); } else if (SvPADTMP(sv)) sv = newSVsv(sv); |