diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-06-29 22:15:45 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-06-30 09:11:17 +0100 |
commit | 5da80af416fe1cadcc86dcb161e4297f0ea37c63 (patch) | |
tree | 135a5c8fa123dc5e6749a09e26b2de488a8f7575 /toke.c | |
parent | 5bb89d25eef36595e8b2275f7b0739655e3535d5 (diff) | |
download | perl-5da80af416fe1cadcc86dcb161e4297f0ea37c63.tar.gz |
In Perl_filter_del(), no need to NULL IoANY(datasv).
Perl_sv_clear() understands the IOf_FAKE_DIRP flag, and when set won't treat
IoANY() as a a pointer to a directory handle that needs closing.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -3757,8 +3757,6 @@ Perl_filter_del(pTHX_ filter_t funcp) /* if filter is on top of stack (usual case) just pop it off */ datasv = FILTER_DATA(AvFILLp(PL_rsfp_filters)); if (IoANY(datasv) == FPTR2DPTR(void *, funcp)) { - IoFLAGS(datasv) &= ~IOf_FAKE_DIRP; - IoANY(datasv) = (void *)NULL; sv_free(av_pop(PL_rsfp_filters)); return; |