From bda09299fc63ed51492bdd5b8f82231f8b5495d5 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Fri, 9 Mar 2007 16:09:49 +0000 Subject: [PATCH] fixed memory leak by calling curl_slist_free_all(headers) --- src/pluto/fetch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pluto/fetch.c b/src/pluto/fetch.c index d9798284d..83d4c766c 100644 --- a/src/pluto/fetch.c +++ b/src/pluto/fetch.c @@ -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);