Skip to content

Commit 519c062

Browse files
committed
S_require_file - make mortalcopy directly
1 parent 93d4859 commit 519c062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pp_ctl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4803,8 +4803,7 @@ S_require_file(pTHX_ SV *sv)
48034803
}
48044804

48054805
if (SvPADTMP(nsv)) {
4806-
nsv = sv_newmortal();
4807-
SvSetSV_nosteal(nsv,sv);
4806+
nsv = sv_mortalcopy_flags(sv, SV_GMAGIC|SV_NOSTEAL|SV_DO_COW_SVSETSV);
48084807
}
48094808

48104809
const char *method = NULL;

0 commit comments

Comments
 (0)