From: Steinar H. Gunderson Date: Wed, 15 May 2013 20:24:54 +0000 (+0200) Subject: Fix a potential double-free. X-Git-Tag: 1.0.0~36 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=8a9906c6d1223019c6e91a2d152dc2b2710db821 Fix a potential double-free. --- diff --git a/httpinput.cpp b/httpinput.cpp index 7da8daa..cc618bc 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -89,7 +89,6 @@ int HTTPInput::lookup_and_connect(const string &host, const string &port) if (err == -1) { log(WARNING, "[%s] Lookup of '%s' failed (%s).", url.c_str(), host.c_str(), gai_strerror(err)); - freeaddrinfo(ai); return -1; }