freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "sean mathews" <mathewss AT nutech.com>
- To: freetds AT franklin.oit.unc.edu
- Subject: found bug here is a patch..
- Date: Mon, 10 Jun 2002 18:42:09 -0400
realy didnt want to get into the struc's to much probably
could be cleaned up wo only use one cast version
of the odbc param.. but ither way its a bugger no one
ever bothered to close a socket here..
--- odbc.c.old Mon Jun 10 14:20:05 2002
+++ odbc.c Mon Jun 10 14:40:23 2002
@@ -884,9 +884,10 @@
SQLHDBC hdbc)
{
ODBCConnection* dbc = (ODBCConnection*) hdbc;
-
+ struct _hdbc *dbc1 = (struct _hdbc *) hdbc;
FreeConnectParams (dbc->params);
+ tds_free_socket(dbc1->tds_socket);
free (dbc);
return SQL_SUCCESS;
- found bug here is a patch.., sean mathews, 06/10/2002
Archive powered by MHonArc 2.6.24.