From: Pavel Rochnyack Date: Wed, 11 May 2016 21:31:42 +0000 (+0600) Subject: utils_db_query: Added lost free(). X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5ffce6705a10fe7ae5e156f3a122ff0546b3f171;p=collectd.git utils_db_query: Added lost free(). --- diff --git a/src/utils_db_query.c b/src/utils_db_query.c index a58bc065..0d56ad46 100644 --- 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; } }