Skip to Content.
Sympa Menu

freetds - RE: [freetds] tdspool: Segmentation fault on connect

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tdspool: Segmentation fault on connect
  • Date: Tue, 29 Jul 2003 15:00:16 +0200

>
> Temporary solution!!!
>
> The problem is in lines 68,69 at src/tds/tdsstring.c
>
> free() does'nt works!!! (pointer problem)
>
> Comment both lines if you have Segmentation fault
> and recompile
> Right now is working but with a memory problem....
> Any solution?
> Any patch?
>
> Regards.
>

Try code like

void
tds_dstr_free(char **s)
{
if (*s && *s != tds_str_empty)
free(*s);
}

If this work there is some problem in upper layer (*s shouldn't be
NULL...)

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page