projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
524081c
)
Fix memory leak in write_riemann
author
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ
<faxmodem@collectd.org>
Wed, 4 Dec 2019 13:08:47 +0000
(14:08 +0100)
committer
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ
<faxmodem@collectd.org>
Thu, 5 Dec 2019 11:51:17 +0000
(12:51 +0100)
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
patch
|
blob
|
history
diff --git
a/src/write_riemann.c
b/src/write_riemann.c
index
201ac51
..
20e5dc2
100644
(file)
--- 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);