fixed memory leak by calling curl_slist_free_all(headers)
This commit is contained in:
1 parent
dbc45e90d4
commit
bda09299fc
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user