From: Sebastian Harl Date: Tue, 22 Apr 2014 20:05:42 +0000 (+0200) Subject: collectd::unixsock plugin: Free temporarily allocated memory. X-Git-Tag: sysdb-0.1.0~97 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0fba5d264e239b970601ec8cf087b3027db9f48a;p=sysdb.git collectd::unixsock plugin: Free temporarily allocated memory. --- diff --git a/src/backend/collectd/unixsock.c b/src/backend/collectd/unixsock.c index 0c5082a..6fc2ef9 100644 --- a/src/backend/collectd/unixsock.c +++ b/src/backend/collectd/unixsock.c @@ -270,6 +270,7 @@ sdb_collectd_collect(sdb_object_t *user_data) "%i service%s (%i failed) for host '%s'.", state.svc_updated, state.svc_updated == 1 ? "" : "s", state.svc_failed, state.current_host); + free(state.current_host); } return 0; } /* sdb_collectd_collect */