From 5111d79ff6731ac14c0f8c8637fb2eeeef658e50 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 9 Oct 2009 08:13:29 +0000 Subject: [PATCH] 2009-10-09 10:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/compiler/hbmain.c ! fixed unnecessary hb_xfree() call when given @.clp file does not exist. Thanks to Jose Luis Capel for information about the problem. --- harbour/ChangeLog | 6 ++++++ harbour/source/compiler/hbmain.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index da79f45cef..f111545b89 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-10-09 10:13 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/compiler/hbmain.c + ! fixed unnecessary hb_xfree() call when given @.clp file + does not exist. Thanks to Jose Luis Capel for information about + the problem. + 2009-10-08 16:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbfntx/dbfntx1.c * harbour/source/rdd/dbfnsx/dbfnsx1.c diff --git a/harbour/source/compiler/hbmain.c b/harbour/source/compiler/hbmain.c index e822b8c67d..bfd5139e98 100644 --- a/harbour/source/compiler/hbmain.c +++ b/harbour/source/compiler/hbmain.c @@ -4055,7 +4055,7 @@ static int hb_compCompile( HB_COMP_DECL, const char * szPrg, const char * szBuff pModule = pModule->pNext; } - if( HB_COMP_PARAM->pFileName != pFileName ) + if( pFileName && HB_COMP_PARAM->pFileName != pFileName ) hb_xfree( pFileName ); if( !HB_COMP_PARAM->fExit && iStatus == EXIT_SUCCESS )