xcb_auth: Fix memory leak in _xcb_get_auth_info.
authorNick Bowler <nbowler@draconx.ca>
Thu, 11 Nov 2010 01:49:41 +0000 (20:49 -0500)
committerJulien Danjou <julien@danjou.info>
Tue, 23 Nov 2010 13:58:48 +0000 (14:58 +0100)
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 <nbowler@draconx.ca>
Signed-off-by: Julien Danjou <julien@danjou.info>

No differences found