From fee696b6e8f932c7160bc09c8c1d23383b87138a Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Mon, 18 Jul 2016 13:58:52 -0400 Subject: [PATCH] util: Fix incorrect VIR_FREE in virConfGetValueStringList Since we VIR_ALLOC_N to *values, the VIR_FREE should be done likewise Signed-off-by: John Ferlan --- src/util/virconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virconf.c b/src/util/virconf.c index a41f896f50..ee54072467 100644 --- a/src/util/virconf.c +++ b/src/util/virconf.c @@ -1016,7 +1016,7 @@ int virConfGetValueStringList(virConfPtr conf, return -1; if (cval->str && VIR_STRDUP((*values)[0], cval->str) < 0) { - VIR_FREE(values); + VIR_FREE(*values); return -1; } break;