diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-10-21 14:17:43 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-10-21 22:23:00 +0100 |
commit | e6d100354317475412161a487ffbcf36582115c5 (patch) | |
tree | 9a23232d30c73bbdb763779027fea2f636516bdb /gcc/expr.h | |
parent | 1373066a46d8d47abd97e46a005aef3b3dbfe94a (diff) | |
download | gcc-e6d100354317475412161a487ffbcf36582115c5.zip gcc-e6d100354317475412161a487ffbcf36582115c5.tar.gz gcc-e6d100354317475412161a487ffbcf36582115c5.tar.bz2 |
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.
Diffstat (limited to 'gcc/expr.h')
0 files changed, 0 insertions, 0 deletions