From 7bcddb1d00ca3df53c72c4c5ecbf38238075f107 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:57:08 +0200 Subject: [PATCH] utils_db_query.c: plug leak on error --- src/utils_db_query.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils_db_query.c b/src/utils_db_query.c index e6e70527..448b82bc 100644 --- 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); } } -- 2.11.0