projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4f918
)
Plug a leak in Target:Set.
author
Igor Peshansky
<igorpeshansky@github.com>
Fri, 16 Sep 2016 16:03:35 +0000
(12:03 -0400)
committer
Igor Peshansky
<igorpeshansky@github.com>
Fri, 16 Sep 2016 16:06:07 +0000
(12:06 -0400)
src/target_set.c
patch
|
blob
|
history
diff --git
a/src/target_set.c
b/src/target_set.c
index
3de86e4
..
6b44bcc
100644
(file)
--- a/
src/target_set.c
+++ b/
src/target_set.c
@@
-393,8
+393,9
@@
static int ts_invoke (const data_set_t *ds, value_list_t *vl, /* {{{ */
DEBUG ("target_set: ts_invoke: setting metadata value for key `%s': "
"`%s'.", key, temp);
- s
tatus = meta_data_add_string (new_meta, key, temp
);
+ s
free (string
);
+ status = meta_data_add_string (new_meta, key, temp);
if (status)
{
ERROR ("Target `set': Unable to set metadata value `%s'.", key);