projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90074e2
)
utils_db_query.c: plug leak on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:57:08 +0000
(10:57 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 08:57:31 +0000
(10:57 +0200)
src/utils_db_query.c
patch
|
blob
|
history
diff --git
a/src/utils_db_query.c
b/src/utils_db_query.c
index
e6e7052
..
448b82b
100644
(file)
--- a/
src/utils_db_query.c
+++ b/
src/utils_db_query.c
@@
-221,6
+221,7
@@
static int udb_result_submit (udb_result_t *r, /* {{{ */
ERROR ("db query utils: udb_result_submit: Parsing `%s' as %s failed.",
value_str, DS_TYPE_TO_STRING (r_area->ds->ds[i].type));
errno = EINVAL;
+ free (vl.values);
return (-1);
}
}