From: Nick Bowler Date: Thu, 11 Nov 2010 01:49:41 +0000 (-0500) Subject: xcb_auth: Fix memory leak in _xcb_get_auth_info. X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=5755582444ad0ba79e661ab3173cc38e9e588d83;hp=5755582444ad0ba79e661ab3173cc38e9e588d83;p=free-sw%2Fxcb%2Flibxcb xcb_auth: Fix memory leak in _xcb_get_auth_info. If the initial get_peer_sock_name(getpeername ...) succeeds, the pointer to allocated memory is overwritten by the later call to get_peer_sock_name(getsockname ...). Fix that up by freeing the allocated memory before overwriting the pointer. Signed-off-by: Nick Bowler Signed-off-by: Julien Danjou ---