提交 2403dcce 编写于 作者: J Ján Tomko

virCapabilitiesFormatCaches: free cpus_str right after use

This will simplify the cleanup when we start checking for
buffer errors.
上级 2074ef6c
......@@ -904,6 +904,7 @@ virCapabilitiesFormatCaches(virBufferPtr buf,
bank->size >> (kilos * 10),
kilos ? "KiB" : "B",
cpus_str);
VIR_FREE(cpus_str);
virBufferAdjustIndent(&controlBuf, indent + 4);
for (j = 0; j < bank->ncontrols; j++) {
......@@ -937,8 +938,6 @@ virCapabilitiesFormatCaches(virBufferPtr buf,
} else {
virBufferAddLit(buf, "/>\n");
}
VIR_FREE(cpus_str);
}
virBufferAdjustIndent(buf, -2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册