[GENERAL] Strange memory behaviour with PGreset() ...

2005-07-13 Thread Einar Indridason
Hi folks. One of my co-workers came to me with a problem. I took a look, and it does seem to be a problem. (But where? That is why I'm turning to you...) The C code below serves as an example. He is basically trying to re-connect again to a bad database server. The server at 192.168.0.1,

Re: [GENERAL] Strange memory behaviour with PGreset() ...

2005-07-13 Thread Michael Fuhr
On Wed, Jul 13, 2005 at 12:09:37PM +, Einar Indridason wrote: Hi folks. One of my co-workers came to me with a problem. I took a look, and it does seem to be a problem. (But where? That is why I'm turning to you...) Your message doesn't say anything about what the problem is -- what

Re: [GENERAL] Strange memory behaviour with PGreset() ...

2005-07-13 Thread Einar Indridason
On Wed, Jul 13, 2005 at 07:23:29AM -0600, Michael Fuhr wrote: On Wed, Jul 13, 2005 at 12:09:37PM +, Einar Indridason wrote: Hi folks. One of my co-workers came to me with a problem. I took a look, and it does seem to be a problem. (But where? That is why I'm turning to you...)

Re: [GENERAL] Strange memory behaviour with PGreset() ...

2005-07-13 Thread Tom Lane
Einar Indridason [EMAIL PROTECTED] writes: I'm experiencing a memory leak, when I run this program. Yup, it's a leak. See patches just committed at http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c (note patch varies depending on branch)