2009-05-04 19:40 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* harbour/contrib/rddsql/sddmy/mysqldd.c
  * harbour/contrib/rddsql/sddpg/pgsqldd.c
    * added protection against double resource freeing
This commit is contained in:
Mindaugas Kavaliauskas
2009-05-05 16:43:24 +00:00
parent 94d587be3d
commit df0d7f8d4f
3 changed files with 11 additions and 0 deletions

View File

@@ -17,6 +17,11 @@
past entries belonging to these authors: Viktor Szakats.
*/
2009-05-04 19:40 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* harbour/contrib/rddsql/sddmy/mysqldd.c
* harbour/contrib/rddsql/sddpg/pgsqldd.c
* added protection against double resource freeing
2009-05-05 18:09 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/utils/hbi18n/hbi18n.prg
* expand wildcards in given file names on non *nix like platforms

View File

@@ -447,7 +447,10 @@ static HB_ERRCODE mysqlOpen( SQLBASEAREAP pArea )
static HB_ERRCODE mysqlClose( SQLBASEAREAP pArea )
{
if ( pArea->pResult )
{
mysql_free_result( (MYSQL_RES*) pArea->pResult );
pArea->pResult = NULL;
}
return HB_SUCCESS;
}

View File

@@ -473,7 +473,10 @@ static HB_ERRCODE pgsqlOpen( SQLBASEAREAP pArea )
static HB_ERRCODE pgsqlClose( SQLBASEAREAP pArea )
{
if ( pArea->pResult )
{
PQclear( (PGresult *) pArea->pResult );
pArea->pResult = NULL;
}
return HB_SUCCESS;
}