p4raw-id: //depot/perl@1523
Safefree(tmps_stack);
Safefree(ofs);
+ SvREFCNT_dec(rs);
+ SvREFCNT_dec(nrs);
SvREFCNT_dec(statname);
Safefree(screamfirst);
Safefree(screamnext);
SvREFCNT(&sv_yes) = (~(U32)0)/2;
}
- nrs = newSVpv("\n", 1);
- rs = SvREFCNT_inc(nrs);
-
#ifdef PERL_OBJECT
/* TODO: */
/* sighandlerp = sighandler; */
#endif
}
+ nrs = newSVpv("\n", 1);
+ rs = SvREFCNT_inc(nrs);
+
init_stacks(ARGS);
#ifdef MULTIPLICITY
init_interp();
Safefree(ors); /* $\ */
ors = Nullch;
- SvREFCNT_dec(nrs); /* $\ helper */
+ SvREFCNT_dec(rs); /* $/ */
+ rs = Nullsv;
+
+ SvREFCNT_dec(nrs); /* $/ helper */
nrs = Nullsv;
multiline = 0; /* $* */
tainted = t->Ttainted;
curpm = t->Tcurpm; /* XXX No PMOP ref count */
nrs = newSVsv(t->Tnrs);
- rs = newSVsv(t->Trs);
+ rs = SvREFCNT_inc(nrs);
last_in_gv = (GV*)SvREFCNT_inc(t->Tlast_in_gv);
ofslen = t->Tofslen;
ofs = savepvn(t->Tofs, ofslen);