From ba292db9272e09c613be870b2d07b9abb647af72 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 22 Dec 2018 01:24:26 +0100 Subject: [PATCH] Fix an unlikely leak in HTTPInput. Found by Coverity Scan. --- httpinput.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/httpinput.cpp b/httpinput.cpp index bac6b05..cbffe3a 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -167,6 +167,7 @@ int HTTPInput::lookup_and_connect(const string &host, const string &port) if (ioctl(sock, FIONBIO, &one) == -1) { log_perror("ioctl(FIONBIO)"); safe_close(sock); + freeaddrinfo(base_ai); return -1; } -- 2.39.2