Skip to content

Commit be48bbe

Browse files
author
Chip
committed
add a couple missing LEAVEs in perlio_async_run()
1 parent 73c02f1 commit be48bbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

perlio.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2563,8 +2563,10 @@ S_perlio_async_run(pTHX_ PerlIO* f) {
25632563
SAVEDESTRUCTOR_X(S_lockcnt_dec, (void*)f);
25642564
PerlIO_lockcnt(f)++;
25652565
PERL_ASYNC_CHECK();
2566-
if ( !(PerlIOBase(f)->flags & PERLIO_F_CLEARED) )
2566+
if ( !(PerlIOBase(f)->flags & PERLIO_F_CLEARED) ) {
2567+
LEAVE;
25672568
return 0;
2569+
}
25682570
/* we've just run some perl-level code that could have done
25692571
* anything, including closing the file or clearing this layer.
25702572
* If so, free any lower layers that have already been
@@ -2576,6 +2578,7 @@ S_perlio_async_run(pTHX_ PerlIO* f) {
25762578
*f = l->next;
25772579
Safefree(l);
25782580
}
2581+
LEAVE;
25792582
return 1;
25802583
}
25812584

0 commit comments

Comments
 (0)