From: Sebastian Harl Date: Sun, 1 Feb 2015 10:30:09 +0000 (+0100) Subject: collectd::unixsock: Fixed a memory leak happening when unloading the module. X-Git-Tag: sysdb-0.7.0~21 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=7f8971d3e987a028b155decaae4cb80de89b8447 collectd::unixsock: Fixed a memory leak happening when unloading the module. --- diff --git a/src/plugins/backend/collectd/unixsock.c b/src/plugins/backend/collectd/unixsock.c index da77d72..8af5327 100644 --- a/src/plugins/backend/collectd/unixsock.c +++ b/src/plugins/backend/collectd/unixsock.c @@ -90,6 +90,8 @@ user_data_destroy(void *obj) if (ud->ts_base) free(ud->ts_base); ud->ts_type = ud->ts_base = NULL; + + free(ud); } /* user_data_destroy */ /* store the specified host-name (once per iteration) */