From: Ruben Kerkhof Date: Sat, 23 Apr 2016 08:57:08 +0000 (+0200) Subject: utils_db_query.c: plug leak on error X-Git-Tag: collectd-5.6.0~329^2~29 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7bcddb1d00ca3df53c72c4c5ecbf38238075f107;p=collectd.git utils_db_query.c: plug leak on error --- 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); } }