From 00653846cdaf47fb7b7f73aa38c30ec101c26a78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=E1=B4=80=CA=99=C9=AA=E1=B4=87=C9=B4=20W=E1=B4=87=CA=80?= =?utf8?q?=C9=B4=CA=9F=C9=AA?= Date: Wed, 4 Dec 2019 14:08:47 +0100 Subject: [PATCH] Fix memory leak in write_riemann MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Trivia: this cost a user €1844,28160184475 in electricity (~3TB of RAM freed) Changelog: Fix memory leak in write_riemann Change-Id: If95da8d90c078c19ac0062e3bbb006185dcc441d --- src/write_riemann.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.0