freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend())
- From: Frediano Ziglio <freddyz77 AT tin.it>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend())
- Date: Thu, 08 Jul 2004 11:50:58 +0200
Il gio, 2004-07-08 alle 04:31, liam AT inodes.org ha scritto:
> On Wed, Jul 07, 2004 at 05:45:45PM +1000, liam AT inodes.org wrote:
>
> > ...
> >
> > The process grows without bound at the rate of approximately 1Mbyte/s.
> > Does
> > anyone have any suggestions if I'm doing something wrong with my API use?
>
> As a follow-up to this. I've tried using dbcancel() and even occasionally
> pausing the loop, performing a dbloginfree(), dbexit(), etc and then
> a re-connect but this does not free the used memory.
>
> Running it through dmalloc, I can see that tds_alloc_param_row() is
> called many times in rpc.c but there's no function in dblib.c that
> appears to call tds_free_param_row().
>
> This comment also seems rather suspicious.
>
> rpc.c:325
> erc = tds_submit_rpc(dbproc->tds_socket, ...);
> /* TODO free parameters */
> if (erc == TDS_FAIL) {
> return FAIL;
> }
> }
>
> Unless there are some objections (or offers) I'll start trying to patch
> the apparent numerous memory leaks in 0.62.4.
>
This patch should fix the problem (committed in 0.63, not in 0.62)
freddy77
Attachment:
vedi.diff.gz
Description: GNU Zip compressed data
-
re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
liam, 07/07/2004
-
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
liam, 07/07/2004
-
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
James K. Lowden, 07/07/2004
-
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
Frediano Ziglio, 07/08/2004
- Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()), James K. Lowden, 07/08/2004
-
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
Frediano Ziglio, 07/08/2004
- Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()), Frediano Ziglio, 07/08/2004
-
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
James K. Lowden, 07/07/2004
-
Re: re-use of dbprocess structure (was: Re: [freetds] state of dbrpcsend()),
liam, 07/07/2004
Archive powered by MHonArc 2.6.24.