[Xcb] [PATCH] Prevent theoretical double free and leak on get_peer_sock_name.

Arnaud Fontaine arnaud at andesi.org
Wed Mar 23 21:32:25 PDT 2011


Hello,

    > From: Rami  Ylimäki <rami.ylimaki at vincit.fi> Variable new_sockname
    > will leak  and sockname will be double freed if  both of the cases
    > shown below are true.

    > 1. realloc succeeds and doesn't return the original pointer
    > 2. calling socket_func fails

Yes, you're right. Thanks for the patch:
Reviewed-by: Arnaud Fontaine <arnau at debian.org>

Cheers,
--
Arnaud Fontaine


More information about the Xcb mailing list