]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Use VIR_STEAL_PTR in virstoragefile
authorJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2019 13:07:50 +0000 (08:07 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit5d693534fa1a7b946d284cbc2eb4e2b34db0aabf
tree94d7e2e3ddfbdbfb91c630d22b2e2fcc6548f5dd
parenta1c453dc08871e1a353e4d51f597d0315b2016a0
util: Use VIR_STEAL_PTR in virstoragefile

Rather than open coding virStorageFileGetRelativeBackingPath
and virStorageFileGetMetadataRecurse, let's make use of the
VIR_STEAL_PTR macro.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virstoragefile.c