From: Michal Privoznik Date: Fri, 4 Aug 2017 13:27:45 +0000 (+0200) Subject: virdbustest: Don't leak @out_strv1 X-Git-Tag: v3.7.0-rc1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08425740b2b70124aa69dafdea339a9da0a1fb53;p=thirdparty%2Flibvirt.git virdbustest: Don't leak @out_strv1 In testMessageSingleArrayRef the string is doubly referenced. Therefore we have to free also the first pointer to the string. Signed-off-by: Michal Privoznik --- diff --git a/tests/virdbustest.c b/tests/virdbustest.c index 3be9cf17ed..b7ddd77915 100644 --- a/tests/virdbustest.c +++ b/tests/virdbustest.c @@ -323,6 +323,7 @@ static int testMessageSingleArrayRef(const void *args ATTRIBUTE_UNUSED) cleanup: if (out_strv1) VIR_FREE(out_strv1[0]); + VIR_FREE(out_strv1); virDBusMessageUnref(msg); return ret; }