http plugin: Fix a memory leak by cleaning up the curl handles
authorPaul Sadauskas <psadauskas@gmail.com>
Wed, 17 Jun 2009 16:49:02 +0000 (10:49 -0600)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 21 Aug 2009 06:41:53 +0000 (08:41 +0200)
src/http.c

index 6aad9de..06737a3 100644 (file)
@@ -353,6 +353,8 @@ static int http_write (const data_set_t *ds, const value_list_t *vl,
     return (-1);
   }
 
+  curl_easy_cleanup(curl);
+
   return (0);
 
 } /* int http_write */