projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91590b1
)
target_set: plug leak on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 9 Dec 2016 17:15:29 +0000
(18:15 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 9 Dec 2016 17:15:29 +0000
(18:15 +0100)
CID 157645
src/target_set.c
patch
|
blob
|
history
diff --git
a/src/target_set.c
b/src/target_set.c
index
5bf40fa
..
7d54c93
100644
(file)
--- a/
src/target_set.c
+++ b/
src/target_set.c
@@
-358,6
+358,7
@@
static int ts_invoke(const data_set_t *ds, value_list_t *vl, /* {{{ */
ERROR("Target `set': Unable to get replacement metadata value `%s'.",
key);
strarray_free(meta_toc, (size_t)meta_entries);
+ meta_data_destroy(new_meta);
return (status);
}
@@
-373,6
+374,7
@@
static int ts_invoke(const data_set_t *ds, value_list_t *vl, /* {{{ */
if (status) {
ERROR("Target `set': Unable to set metadata value `%s'.", key);
strarray_free(meta_toc, (size_t)meta_entries);
+ meta_data_destroy(new_meta);
return (status);
}
}