]> gcc.gnu.org Git - gcc.git/commit
libcody: Avoid double-free
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Oct 2021 13:17:43 +0000 (14:17 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 21 Oct 2021 21:23:00 +0000 (22:23 +0100)
commite6d100354317475412161a487ffbcf36582115c5
tree9a23232d30c73bbdb763779027fea2f636516bdb
parent1373066a46d8d47abd97e46a005aef3b3dbfe94a
libcody: Avoid double-free

If the listen call fails then 'goto fail' will jump to that label and
use freeaddrinfo again. Set the pointer to null to prevent that.

libcody/ChangeLog:

* netserver.cc (ListenInet6): Set pointer to null after
deallocation.
libcody/netserver.cc
This page took 0.058682 seconds and 5 git commands to generate.