Code

collectd::unixsock: Fixed a memory leak happening when unloading the module.
[sysdb.git] / src / plugins / backend / collectd / unixsock.c
index da77d727a213dd2325cc8edf5b0801d50648775a..8af5327624e135c15796b5e86c1bc6a7878cbedd 100644 (file)
@@ -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) */