]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: Cleanup testDomainRenameCallback
authorJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2019 13:11:03 +0000 (08:11 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit0082ee5b5ee8a1cc99d2d6f8821452d24c960ef7
tree26d3b9d43aa94b7940a9ed18463fb611f3269949
parent1450b1926964d8eccb81f268b5ad90afb72e59d2
test: Cleanup testDomainRenameCallback

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 <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/test/test_driver.c