Re: [BUGS] Libpq free bug? (Was: IIS Postgres ASP ADO - Problem) - Mailing list pgsql-odbc

From Dave Page
Subject Re: [BUGS] Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC96B7@ratbert.vale-housing.co.uk
Whole thread Raw
List pgsql-odbc

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: 02 August 2005 00:36
> To: Dave Page
> Cc: pgsql-bugs@postgresql.org; pgsql-odbc@postgresql.org
> Subject: Re: [BUGS] Libpq free bug? (Was: [ODBC] IIS Postgres
> ASP ADO - Problem)
>
> "Dave Page" <dpage@vale-housing.co.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

pgsql-odbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: Libpq free bug? (Was: IIS Postgres ASP ADO - Problem)
Next
From: "Dave Page"
Date:
Subject: psqlODBC 08.00.0102 available for download