From 5ffce6705a10fe7ae5e156f3a122ff0546b3f171 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Thu, 12 May 2016 03:31:42 +0600 Subject: [PATCH] utils_db_query: Added lost free(). --- src/utils_db_query.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.11.0