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
This commit is contained in:
Przemysław Czerpak
2017-09-28 15:11:11 +02:00
parent 990feed254
commit f9e89659e9
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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 ) ) ) )
{
@@ -1507,6 +1507,8 @@ static void hb_pp_getLine( PHB_PP_STATE pState )
iStartLine++;
iLines++;
}
if( pToken == NULL )
pState->pNextTokenPtr = pEolTokenPtr;
*pEolTokenPtr = pToken;
}