Skip to content

Commit

Permalink
2017-09-28 15:11 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
Browse files Browse the repository at this point in the history
  * src/pp/ppcore.c
    ! fixed memory leak in unclosed extended block
  • Loading branch information
druzus committed Sep 28, 2017
1 parent 990feed commit f9e8965
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2017-09-28 15:11 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/pp/ppcore.c
! fixed memory leak in unclosed extended block

2017-09-28 14:55 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/pp/ppcore.c
! fixed line numbering in unclosed extended block
Expand Down
4 changes: 3 additions & 1 deletion src/pp/ppcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ static void hb_pp_getLine( PHB_PP_STATE pState )

if( pEolTokenPtr &&
( pEolTokenPtr != pState->pNextTokenPtr ||
( pState->iNestedBlock &&
( pState->iNestedBlock && pState->pFile->iTokens &&
( pState->pFile->pLineBuf ? pState->pFile->nLineBufLen == 0 :
pState->pFile->fEof ) ) ) )
{
Expand All @@ -1507,6 +1507,8 @@ static void hb_pp_getLine( PHB_PP_STATE pState )
iStartLine++;
iLines++;
}
if( pToken == NULL )
pState->pNextTokenPtr = pEolTokenPtr;
*pEolTokenPtr = pToken;
}

Expand Down

0 comments on commit f9e8965

Please sign in to comment.