projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95a523
)
utils_db_query: Added lost free().
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 11 May 2016 21:31:42 +0000
(
03:31
+0600)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Thu, 24 May 2018 05:33:18 +0000
(12:33 +0700)
src/utils_db_query.c
patch
|
blob
|
history
diff --git
a/src/utils_db_query.c
b/src/utils_db_query.c
index
a58bc06
..
0d56ad4
100644
(file)
--- a/
src/utils_db_query.c
+++ b/
src/utils_db_query.c
@@
-268,6
+268,7
@@
static int udb_result_submit(udb_result_t *r, /* {{{ */
vl.meta = meta_data_create();
if (vl.meta == NULL) {
ERROR("db query utils:: meta_data_create failed.");
+ free(vl.values);
return -ENOMEM;
}
@@
-278,6
+279,7
@@
static int udb_result_submit(udb_result_t *r, /* {{{ */
ERROR("db query utils:: meta_data_add_string failed.");
meta_data_destroy(vl.meta);
vl.meta = NULL;
+ free(vl.values);
return status;
}
}