Code

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 6aad9de072ed7e49f6a21640d5a4c4ea47dc1ca3..06737a3df121208704ad35fa0dad5422dc305407 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 */