Excerpt from the virCommandAddArgBuffer() description: "Correctly
transfers memory errors or contents from buf to cmd."
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/qemu/qemu_command.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index aed7411..0ead1d0 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -6402,9 +6402,6 @@ qemuBuildNumaArgStr(const virDomainDef *def, virCommandPtr cmd)
virBufferAdd(&buf, cpumask, -1);
virBufferAsprintf(&buf, ",mem=%d", cellmem);
- if (virBufferCheckError(&buf) < 0)
- goto cleanup;
-
virCommandAddArgBuffer(cmd, &buf);
}
ret = 0;
--
2.0.0