Re: [libvirt] [PATCH v2 19/32] test: Cleanup testDomainRenameCallback

2019-02-11 Thread Ján Tomko
On Fri, Feb 08, 2019 at 01:37:13PM -0500, John Ferlan wrote: Rather than have a need for old_dom_name, let's just VIR_FREE the old name first, then use VIR_STEAL_PTR to handle the swap from the old name to the new name. Signed-off-by: John Ferlan Reviewed-by: Erik Skultety --- src/test/test_dr

[libvirt] [PATCH v2 19/32] test: Cleanup testDomainRenameCallback

2019-02-08 Thread John Ferlan
Rather than have a need for old_dom_name, let's just VIR_FREE the old name first, then use VIR_STEAL_PTR to handle the swap from the old name to the new name. Signed-off-by: John Ferlan Reviewed-by: Erik Skultety --- src/test/test_driver.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletio