From c5630e1eb67e6ab25c705070090e4e24551520a0 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 29 May 2008 23:36:06 +0000 Subject: [PATCH] 2008-05-30 01:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbct/files.c ! fixed memory leak in FILEDELETE() reported by Ed - thanks. --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbct/files.c | 1 + 2 files changed, 5 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 1fb6018b6a..51abe2cea8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-05-30 01:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbct/files.c + ! fixed memory leak in FILEDELETE() reported by Ed - thanks. + 2008-05-30 00:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/estack.c * declare hb_stack as static variable when HB_STACK_MACROS is diff --git a/harbour/contrib/hbct/files.c b/harbour/contrib/hbct/files.c index ed2661c7b0..bf0275244b 100644 --- a/harbour/contrib/hbct/files.c +++ b/harbour/contrib/hbct/files.c @@ -467,6 +467,7 @@ HB_FUNC( FILEDELETE ) } while( hb_fsFindNext( ffind ) ); + hb_xfree( pFilepath ); hb_fsFindClose( ffind ); } if( fFree )