Re: [BUGS] libpq3 + ssl memory leak

2003-12-18 Thread Bruce Momjian
Tom Lane wrote: > Neil Conway <[EMAIL PROTECTED]> writes: > > Okay, I've attached a patch that fixes the problem for me. The problem > > turned out to be pretty simple: the PostgreSQL code (both backend and > > frontend SSL support) was calling SSL_get_peer_certificate() without > > properly free'i

Re: [BUGS] libpq3 + ssl memory leak

2003-12-18 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > Okay, I've attached a patch that fixes the problem for me. The problem > turned out to be pretty simple: the PostgreSQL code (both backend and > frontend SSL support) was calling SSL_get_peer_certificate() without > properly free'ing its return value. Appl

Re: [BUGS] libpq3 + ssl memory leak

2003-12-14 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> 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 co

Re: [BUGS] libpq3 + ssl memory leak

2003-12-12 Thread Neil Conway
Okay, I've attached a patch that fixes the problem for me. The problem turned out to be pretty simple: the PostgreSQL code (both backend and frontend SSL support) was calling SSL_get_peer_certificate() without properly free'ing its return value. I haven't actually confirmed the backend memory leak

Re: [BUGS] libpq3 + ssl memory leak

2003-12-11 Thread Neil Conway
Neil Conway <[EMAIL PROTECTED]> writes: > I can verify this locally. Unfortunately, my copy of valgrind doesn't > seem to be picking up the debugging symbols for OpenSSL Ok, some progress. I installed a development snapshot of OpenSSL, and confirmed that the problem still occurs there. The full va

Re: [BUGS] libpq3 + ssl memory leak

2003-12-04 Thread Neil Conway
Olaf Hartmann <[EMAIL PROTECTED]> writes: > We expirience a memory leak with every connection when using an SSL > encrypted TCP connection to connect a postgres database. I can verify this locally. Unfortunately, my copy of valgrind doesn't seem to be picking up the debugging symbols for OpenSSL,

[BUGS] libpq3 + ssl memory leak

2003-12-04 Thread Olaf Hartmann
POSTGRESQL BUG REPORT TEMPLATE Your name : Olaf Hartmann Your email address : [EMAIL PROTECTED] System