projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c071e
)
set target: Fix memory leak.
author
Florian Forster
<octo@collectd.org>
Wed, 22 Nov 2017 06:47:14 +0000
(07:47 +0100)
committer
Florian Forster
<octo@collectd.org>
Wed, 22 Nov 2017 06:47:14 +0000
(07:47 +0100)
CID: 157645
src/target_set.c
patch
|
blob
|
history
diff --git
a/src/target_set.c
b/src/target_set.c
index
7c02c48
..
e7a3288
100644
(file)
--- a/
src/target_set.c
+++ b/
src/target_set.c
@@
-353,6
+353,7
@@
static int ts_invoke(const data_set_t *ds, value_list_t *vl, /* {{{ */
int status = meta_data_toc(data->meta, &meta_toc);
if (status < 0) {
ERROR("Target `set': meta_data_toc failed with status %d.", status);
+ meta_data_destroy(new_meta);
return status;
}
size_t meta_entries = (size_t)status;