Skip to content

Commit

Permalink
Fix *ENV refcnt issue #112
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Feb 11, 2013
1 parent 0208038 commit bb4a83e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/B/C.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3038,6 +3038,8 @@ if (0) {
}
if ($fullname eq 'main::ENV') {
$init->add(qq[$sym = PL_envgv;]);
my $refcnt = $gv->REFCNT;
$init->add( sprintf( "SvREFCNT($sym) += %u;", $refcnt ) ) if $refcnt > 0;
return $sym;
}
# defer to the end because we remove compiler-internal and skipped stuff
Expand Down

0 comments on commit bb4a83e

Please sign in to comment.