Skip to content

Commit 631efeb

Browse files
committed
S_require_file - make mortalcopy directly
1 parent 99c2d70 commit 631efeb

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
@@ -4814,8 +4814,7 @@ S_require_file(pTHX_ SV *sv)
48144814
}
48154815

48164816
if (SvPADTMP(nsv)) {
4817-
nsv = sv_newmortal();
4818-
SvSetSV_nosteal(nsv,sv);
4817+
nsv = sv_mortalcopy_flags(sv, SV_GMAGIC|SV_NOSTEAL|SV_DO_COW_SVSETSV);
48194818
}
48204819

48214820
const char *method = NULL;

0 commit comments

Comments
 (0)