Skip to content

Commit 0dfe226

Browse files
committed
S_require_file - make mortalcopy directly
1 parent 826062d commit 0dfe226

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
@@ -4811,8 +4811,7 @@ S_require_file(pTHX_ SV *sv)
48114811
}
48124812

48134813
if (SvPADTMP(nsv)) {
4814-
nsv = sv_newmortal();
4815-
SvSetSV_nosteal(nsv,sv);
4814+
nsv = sv_mortalcopy_flags(sv, SV_GMAGIC|SV_NOSTEAL|SV_DO_COW_SVSETSV);
48164815
}
48174816

48184817
const char *method = NULL;

0 commit comments

Comments
 (0)