From 1646bac0813b658f33b6209825af6dbb1d103b3d Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Wed, 20 Sep 2006 19:03:06 +0000 Subject: [PATCH] 2006-09-20 21:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/codebloc.c ! fixed detaching locals in variable parameters functions --- harbour/ChangeLog | 4 ++++ harbour/source/vm/codebloc.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 1e5181d05d..19532406dd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ + ! Fixed leak introduced in previous commit. + +2006-09-20 23:17 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu) + * harbour/include/hbexprb.c * harbour/include/hbexprop.h * harbour/source/common/expropt2.c % Compile-time optimization added for expressions below: diff --git a/harbour/source/vm/codebloc.c b/harbour/source/vm/codebloc.c index 6f6783a7bd..f4cd3af5b0 100644 --- a/harbour/source/vm/codebloc.c +++ b/harbour/source/vm/codebloc.c @@ -170,7 +170,8 @@ HB_CODEBLOCK_PTR hb_codeblockNew( const BYTE * pBuffer, * TODO: If Harbour will support threads in the future then we need * to implement some kind of semaphores here. */ - pLocal = hb_stackItemFromBase( HB_PCODE_MKUSHORT( pLocalPosTable ) ); + int iLocal = HB_PCODE_MKUSHORT( pLocalPosTable ); + pLocal = hb_stackLocalVariable( &iLocal ); pLocalPosTable += 2; pLocal = hb_memvarDetachLocal( pLocal );