Code

Fixed memory leak in collectdclient library.
authorJason Schmidlapp <jason.schmidlapp@gmail.com>
Thu, 1 Mar 2012 01:27:50 +0000 (20:27 -0500)
committerFlorian Forster <octo@collectd.org>
Sun, 4 Mar 2012 15:06:23 +0000 (16:06 +0100)
Signed-off-by: Florian Forster <octo@collectd.org>
src/libcollectdclient/client.c

index 0c748ba7fa47e3b30f1d2a8d5c30dffdfd70d3e3..2f427a832927112b4d7ea0945f37e8b3a9ea9427 100644 (file)
@@ -746,6 +746,8 @@ int lcc_getval (lcc_connection_t *c, lcc_identifier_t *ident, /* {{{ */
   if (ret_values_names != NULL)
     *ret_values_names = values_names;
 
+  lcc_response_free (&res);
+
   return (0);
 } /* }}} int lcc_getval */