[freetds] memory leak for connect with db-lib

James K. Lowden jklowden at schemamania.org
Mon May 31 11:54:47 EDT 2004


On Mon, 31 May 2004, "ldai" <ldai at accunettech.com> wrote:
> On Thu, 27 May 2004, ZIGLIO, Frediano, VF-IT wrote
> > > 
> > > Hi, everybody:
> > >     I user freeTDS 0.61-2 rpm to develop db-lib programe to access
> > >     MS-
> > > SQLSREVER from linux enrivement. Now I found that I'm just 
> > > only to connect db 
> > > and to release connection, it will cost about 200k memory and 
> > > don't release 
> > > every time.
...
> > You should call dbinit/dbexit only once.
...
>   I modifed code to call dbinit() and dbexit() only once, but I still
>   found 
> the memory leak.
>   I have developed software in Linux9 and accessed Ms-Sql or Sybase with
>   
> freeTDS. I observered the memory leak with "top -p pid" in linux.

http://dmalloc.com/

Please give dmalloc a try.  It should help track down what's wrong.  If
the problem turns out to be in FreeTDS, naturally we'd want it fixed. 
Patches accepted, too. :-)

--jkl



More information about the FreeTDS mailing list