Skip to Content.
Sympa Menu

freetds - Re: TDS_ZERO_FREE error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: TDS_ZERO_FREE error
  • Date: Sat, 10 Feb 2001 12:12:25 -0500 (EST)



Sorry about this one...somehow the header file change got wiped out...and
I haven't been able to check anything into CVS in weeks. (I'm considering
moving things to someplace like sourceforge but I detest using ssh to
check in stuff).

Anyway, here is the patch for tdsutil.h

#define TDS_ZERO_FREE(x) {free((x)); (x) = NULL;}

The original patch had it called FREE, but I renamed it to make it a
little clearer and prevent a symbol clash with other libraries.

Brian

On Fri, 9 Feb 2001, Ben Von Handorf wrote:

> Chris,
>
> I had the same issue. By comaring it to 0.51 I
> decided to do a
>
> #defind TDS_ZERO_FREE(a) free(a)
>
> in tds.h.
>
> Everything seems to work OK, but I don't know if it's
> quite right...
>
> Pax & Good Luck,
> -Ben
>





Archive powered by MHonArc 2.6.24.

Top of Page