Introduction
Introduction Statistics Contact Development Disclaimer Help
getlistenfd: fix minor memleak - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit feed37adc1b23cac513b5d2a17bda4e2ffc77c81
parent 7474d9bd62ae23a8bd355aaf83be9fe9a9693d4d
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 29 Aug 2018 20:17:34 +0200
getlistenfd: fix minor memleak
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/main.c b/main.c
@@ -331,9 +331,9 @@ getlistenfd(struct addrinfo *hints, char *bindip, char *por…
logentry(addstr, port, "-", "could not bind");
}
}
+ freeaddrinfo(ai);
if (rp == NULL)
return -1;
- freeaddrinfo(ai);
return listfd;
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.