fixed memory leak by calling curl_slist_free_all(headers)

This commit is contained in:
Andreas Steffen
2007-03-09 16:09:49 +00:00
parent dbc45e90d4
commit bda09299fc
+1
View File
@@ -337,6 +337,7 @@ fetch_curl(char *url, chunk_t *blob)
{
plog("fetching uri (%s) with libcurl failed: %s", url, errorbuffer);
}
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
/* not using freeanychunk because of realloc (no leak detective) */
curl_free(response.ptr);