Code

collectd::unixsock plugin: Free temporarily allocated memory.
authorSebastian Harl <sh@tokkee.org>
Tue, 22 Apr 2014 20:05:42 +0000 (22:05 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 22 Apr 2014 20:05:42 +0000 (22:05 +0200)
src/backend/collectd/unixsock.c

index 0c5082af54c0b9ca99a95ef8fea295ffeeae1e3b..6fc2ef901176bf82c34b9b275623a7b84a0c8977 100644 (file)
@@ -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 */