]> granicus.if.org Git - postgresql/commit
Fix a theoretical memory leak in pg_password_sendauth(). If the first
authorNeil Conway <neilc@samurai.com>
Thu, 30 Jun 2005 01:59:20 +0000 (01:59 +0000)
committerNeil Conway <neilc@samurai.com>
Thu, 30 Jun 2005 01:59:20 +0000 (01:59 +0000)
commit4714984149a2eac08c6766a068569d0d27f027ec
tree44a0ae38736d6cd347cbae63a715736e3e54d24f
parent401de9c8bef9c77dd25ba6c111094bba14d470d8
Fix a theoretical memory leak in pg_password_sendauth(). If the first
malloc() succeeded but the second failed, the buffer allocated by the
first malloc() would be leaked. Fix this by allocating both buffers
via a single malloc(), as suggested by Tom.

Per Coverity static analysis performed by EnterpriseDB.
src/interfaces/libpq/fe-auth.c