Fix a potential double-free.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 15 May 2013 20:24:54 +0000 (22:24 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 15 May 2013 20:24:54 +0000 (22:24 +0200)
httpinput.cpp

index 7da8daa..cc618bc 100644 (file)
@@ -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;
        }