projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc2d5d
)
write_riemann plugin: Really fix a memory leak.
author
Florian Forster
<octo@collectd.org>
Tue, 23 Apr 2013 05:15:44 +0000
(07:15 +0200)
committer
Florian Forster
<octo@collectd.org>
Tue, 23 Apr 2013 08:43:33 +0000
(10:43 +0200)
Github: #307
src/write_riemann.c
patch
|
blob
|
history
diff --git
a/src/write_riemann.c
b/src/write_riemann.c
index
b524217
..
15bb237
100644
(file)
--- a/
src/write_riemann.c
+++ b/
src/write_riemann.c
@@
-73,7
+73,11
@@
static void riemann_event_protobuf_free (Event *event) /* {{{ */
event->n_tags = 0;
for (i = 0; i < event->n_attributes; i++)
+ {
+ sfree (event->attributes[i]->key);
+ sfree (event->attributes[i]->value);
sfree (event->attributes[i]);
+ }
sfree (event->attributes);
event->n_attributes = 0;