Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem)

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem)
Date: 2005-08-02 07:08:32
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B7@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-odbc

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: 02 August 2005 00:36
> To: Dave Page
> Cc: pgsql-bugs(at)postgresql(dot)org; pgsql-odbc(at)postgresql(dot)org
> Subject: Re: [BUGS] Libpq free bug? (Was: [ODBC] IIS Postgres
> ASP ADO - Problem)
>
> "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
> > Forwarded to -bugs in case it gets missed.
> > This looks like it might be an issue to me, though I may well have
> > overlooked something in my brief look at the code.
>
> There's nothing wrong with that code. The only modifiable
> values in the
> record are the "val" pointers, which are handled correctly. See the
> comment:
>
> * PQconninfoOptions[] is a constant static array that we use
> to initialize
> * a dynamically allocated working copy. All the "val" fields in
> * PQconninfoOptions[] *must* be NULL. In a working
> copy, non-null "val"
> * fields point to malloc'd strings that should be freed when
> the working
> * array is freed (see PQconninfoFree).

Ahh, missed that. Thanks Tom.

Regards, Dave

Browse pgsql-bugs by date

  From Date Subject
Next Message Dan Armbrust 2005-08-02 16:34:40 BUG #1552 followup
Previous Message Tom Lane 2005-08-01 23:46:24 Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem)

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2005-08-02 08:15:58 psqlODBC 08.00.0102 available for download
Previous Message Tom Lane 2005-08-01 23:46:24 Re: Libpq free bug? (Was: [ODBC] IIS Postgres ASP ADO - Problem)