From 9e7977556f4afca2cf786361d0bc01555cf4a230 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 20 Apr 2012 06:15:11 +0000 Subject: [PATCH] 2012-04-20 08:14 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/common/hbffind.c ! fixed stupid typo in my previous commit which caused memory and resource leak --- harbour/ChangeLog | 5 +++++ harbour/src/common/hbffind.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 73078cc377..99f8ca1a99 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2012-04-20 08:14 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * harbour/src/common/hbffind.c + ! fixed stupid typo in my previous commit which caused + memory and resource leak + 2012-04-19 12:15 UTC+0200 Viktor Szakats (harbour syenar.net) * include/hbapicdp.h * src/rtl/hbregex.c diff --git a/harbour/src/common/hbffind.c b/harbour/src/common/hbffind.c index 33b33ec611..1cbe86b0f6 100644 --- a/harbour/src/common/hbffind.c +++ b/harbour/src/common/hbffind.c @@ -894,7 +894,7 @@ void hb_fsFindClose( PHB_FFIND ffind ) { PHB_FFIND_INFO info = ( PHB_FFIND_INFO ) ffind->info; - if( ffind->bFirst ) + if( !ffind->bFirst ) { hb_vmUnlock();