]> xenbits.xensource.com Git - libvirt.git/commit
virCapabilitiesInitCaches: Refactor freeing of temporary variables
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Dec 2021 16:13:50 +0000 (17:13 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 10 Dec 2021 15:36:24 +0000 (16:36 +0100)
commit5b3f00d08734e846e9c4ddfa9c4e2ed806543ad4
tree0575dd544b3de36b0f39b9fc6dd1b326357b3e34
parent9ca80bfa1180a0bd83b4bb2d324bce60fb82dbdb
virCapabilitiesInitCaches: Refactor freeing of temporary variables

Move the 'path' and 'type' variables down to the appropriate block and
use automatic freeing for them as well as the temporary virBitmap.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/capabilities.c