From 4858d23510db9d077f7bd4bc78086469ef147fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Thu, 4 May 2017 14:48:39 +0200 Subject: [PATCH] 2017-05-04 14:48 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/compiler/hbcomp.c ! restored protection against multiple free of the same expression I removed by mistake in one of my recent commits. --- ChangeLog.txt | 5 +++++ src/compiler/hbcomp.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index bf6c09b238..c2d788b97c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,11 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2017-05-04 14:48 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/compiler/hbcomp.c + ! restored protection against multiple free of the same expression + I removed by mistake in one of my recent commits. + 2017-05-03 09:10 UTC Viktor Szakats (vszakats users.noreply.github.com) * * * copyright name cleanups diff --git a/src/compiler/hbcomp.c b/src/compiler/hbcomp.c index 5dffd69dde..edf6baa342 100644 --- a/src/compiler/hbcomp.c +++ b/src/compiler/hbcomp.c @@ -82,6 +82,8 @@ static void hb_compExprDealloc( HB_COMP_DECL, PHB_EXPR pExpr ) } hb_xfree( pExpItm ); } + else + pExpr->ExprType = HB_ET_NONE; } static PHB_EXPR hb_compExprNew( HB_COMP_DECL, HB_EXPRTYPE iType )