Pete Zaitcev wrote:
commit c85ab3dc18b6d0c02adb18413352267f6db76d8d
Author: Pete Zaitcev <zaitcev(a)yahoo.com>
Date: Wed Apr 6 23:34:48 2011 -0600
Free curl headers.
This seems easy enough, because curl saves headers by value. Actually,
there is no leak, because we only run this once in a separate program,
but let's do the right thing in case we copy this code elsehwere.
dc-rhev-image.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/dc-rhev-image.c b/dc-rhev-image.c
index 02e6da8..872ce3b 100644
--- a/dc-rhev-image.c
+++ b/dc-rhev-image.c
@@ -898,6 +898,7 @@ static struct stor_dom *apistart(struct config *cfg)
sd->poolid = apipool(cfg, &connection, headers, pathdc, sd->uuid);
curl_easy_cleanup(connection.curl);
+ curl_slist_free_all(headers);
free(authhdr);
free(authraw);
ACK