提交 08425740 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
上级 f9bc41f7
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册