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 0c748ba..2f427a8 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 */