Re: libpq3 + ssl memory leak - Mailing list pgsql-bugs

From Tom Lane
Subject Re: libpq3 + ssl memory leak
Date
Msg-id 4769.1071451989@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq3 + ssl memory leak  (Neil Conway <neilc@samurai.com>)
List pgsql-bugs
Neil Conway <neilc@samurai.com> writes:
> This fix needs to be in 7.4.1, so if anyone wants to review this
> patch, that would be great.

Looks reasonable from here, but confirmation from the complainant that
it fixes his problem would be real good ...

> P.S. I added an assertion in the backend code to help catch any other
> memory leaks in this area. I didn't add an equivalent one to the
> frontend code, because libpq doesn't seem to be setup for
> assertions.

Yeah, we can't assume that a decent support mechanism exists in an
arbitrary client application.

> When this is applied to 7.4.1, we probably shouldn't
> include the assertion at the risk of suffering backend crashes.

Assert away.  People who are concerned about assertions destabilizing
their systems don't build with asserts enabled in the first place.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1006: information schema constraint information.
Next
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1007: error during installation