Unix Technical Forum

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

This is a discussion on pgsql: Fix a theoretical memory leak in pg_password_sendauth(). within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Fix a theoretical memory leak in pg_password_sendauth(). If the first malloc() succeeded but the second failed, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:12 PM
Neil Conway
 
Posts: n/a
Default pgsql: Fix a theoretical memory leak in pg_password_sendauth().

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/cvsw...1.102&r2=1.103)

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com