提交 fee696b6 编写于 作者: J John Ferlan

util: Fix incorrect VIR_FREE in virConfGetValueStringList

Since we VIR_ALLOC_N to *values, the VIR_FREE should be done likewise
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 a8962f70
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册