Skip to content

Commit

Permalink
add a couple missing LEAVEs in perlio_async_run()
Browse files Browse the repository at this point in the history
  • Loading branch information
Chip committed Sep 25, 2011
1 parent 73c02f1 commit be48bbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion perlio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2563,8 +2563,10 @@ S_perlio_async_run(pTHX_ PerlIO* f) {
SAVEDESTRUCTOR_X(S_lockcnt_dec, (void*)f);
PerlIO_lockcnt(f)++;
PERL_ASYNC_CHECK();
if ( !(PerlIOBase(f)->flags & PERLIO_F_CLEARED) )
if ( !(PerlIOBase(f)->flags & PERLIO_F_CLEARED) ) {
LEAVE;
return 0;
}
/* we've just run some perl-level code that could have done
* anything, including closing the file or clearing this layer.
* If so, free any lower layers that have already been
Expand All @@ -2576,6 +2578,7 @@ S_perlio_async_run(pTHX_ PerlIO* f) {
*f = l->next;
Safefree(l);
}
LEAVE;
return 1;
}

Expand Down

0 comments on commit be48bbe

Please sign in to comment.