Skip to Content.
Sympa Menu

freetds - Re: [freetds] ODBC memory leak?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Nick Gorham <nick AT easysoft.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] ODBC memory leak?
  • Date: Thu, 06 Mar 2003 15:09:46 +0000

ZIGLIO Frediano wrote:

some line wrong

Wrong
SQLFreeHandle(SQL_HANDLE_STMT, &hStmt);

Correct
SQLFreeHandle(SQL_HANDLE_STMT, hStmt);

You must pass handle, not a pointer to handle (handle are defined as void*,
so you didn't received errors... very bad odbc definition)

If you checked the return value you should have got a SQL_INVALID_HANDLE.

--
Nick Gorham
Easysoft Limited http://www.easysoft.com




Archive powered by MHonArc 2.6.24.

Top of Page