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
This commit is contained in:
Przemyslaw Czerpak
2006-09-20 19:03:06 +00:00
parent b3fe893ee1
commit 1646bac081
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
! 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:

View File

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