tOnly free ahost if the reverse lookup was performed - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae) | |
git clone git://r-36.net/geomyidae | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f26ccad8ca8d0f79f7195f6871bb2ceac816ccfa | |
parent 03a382fe95dfeb696629733bbb5a9a751df1b3aa | |
Author: Lucas Gabriel Vuotto | |
Date: Tue, 23 Jan 2018 16:02:23 -0300 Only free ahost if the reverse lookup was performed Signed-off-by: Lucas Gabriel Vuotto | |
diff --git a/main.c b/main.c | |
t@@ -99,7 +99,8 @@ logentry(char *host, char *port, char *qry, char *status) dprintf(glfd, "[%s|%s|%s|%s] %s\n", timstr, ahost, port, status, qry); - free(ahost); + if (revlookup) + free(ahost); } return; |