[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 08/19] qemu_command: use VIR_AUTOPTR for virJSONValue



On 8/20/19 2:59 PM, Ján Tomko wrote:
Signed-off-by: Ján Tomko <jtomko redhat com>
---
  src/qemu/qemu_command.c | 30 ++++++++++--------------------
  1 file changed, 10 insertions(+), 20 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 94a6ad546e..b5448a074f 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c


You can also modify qemuDiskSourceGetProps(). The virJSONValueObjectCreate() will steal @props and set it to NULL on success. So virJSONValueFree() can be called safely there too.

Michal


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]