From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Wed, 4 Dec 2019 13:08:47 +0000 (+0100) Subject: Fix memory leak in write_riemann X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=00653846cdaf47fb7b7f73aa38c30ec101c26a78;p=collectd.git Fix memory leak in write_riemann Trivia: this cost a user €1844,28160184475 in electricity (~3TB of RAM freed) Changelog: Fix memory leak in write_riemann Change-Id: If95da8d90c078c19ac0062e3bbb006185dcc441d --- diff --git a/src/write_riemann.c b/src/write_riemann.c index 201ac516..20e5dc24 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -405,6 +405,7 @@ wrr_value_to_event(struct riemann_host const *host, /* {{{ */ riemann_event_string_attribute_add(event, key, value); free(value); } + free(toc[i]); } free(toc);