From f426ea7a267251a63de8d1da78cf9766532a0ac3 Mon Sep 17 00:00:00 2001 From: Jason Schmidlapp Date: Wed, 29 Feb 2012 20:27:50 -0500 Subject: [PATCH] Fixed memory leak in collectdclient library. Signed-off-by: Florian Forster --- src/libcollectdclient/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 0c748ba7..2f427a83 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -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 */ -- 2.30.2