Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

pgsql: Fix a theoretical memory leak in pg_password_sendauth().


  • From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
  • To: pgsql-committers(at)postgresql(dot)org
  • Subject: pgsql: Fix a theoretical memory leak in pg_password_sendauth().
  • Date: Wed, 29 Jun 2005 22:59:20 -0300 (ADT)
  • Message-id: <20050630015920.ACFFE529B4@svr1.postgresql.org> <text/plain>

Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/interfaces/libpq:
        fe-auth.c (r1.102 -> r1.103)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-auth.c.diff?r1=1.102&r2=1.103)



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group