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: Craig Davison <cd AT securityfocus.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] ODBC memory leak?
  • Date: Thu, 6 Mar 2003 11:04:32 -0700

On Thu, Mar 06, 2003 at 03:56:44PM +0100, ZIGLIO Frediano wrote:
>
> Your code have some line wrong
>
> Wrong
> SQLFreeHandle(SQL_HANDLE_STMT, &hStmt);
>
> Correct
> SQLFreeHandle(SQL_HANDLE_STMT, hStmt);
>

You're absolutely right. Thanks for noticing that.
Hope I didn't waste too much of your time with that. :)

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

Right, because void** is equivalent to void*.

Thanks for your help.

--
Craig Davison
Symantec Corporation
+1 (403) 213-3939 ext. 228




Archive powered by MHonArc 2.6.24.

Top of Page