fixed memory leak by calling curl_slist_free_all(headers)
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Mar 2007 16:08:28 +0000 (16:08 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Mar 2007 16:08:28 +0000 (16:08 -0000)
src/libstrongswan/utils/fetcher.c

index f5cd342..b14ba16 100644 (file)
@@ -123,6 +123,7 @@ static chunk_t post(private_fetcher_t *this, const char *request_type, chunk_t r
                DBG1("http post request to '%s' using libcurl failed: %s",
                                  this->uri, curl_error_buffer);
                }
+               curl_slist_free_all(headers);
                curl_free(curl_response.ptr);
        }
 #else