]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Expose virCapabilitiesFreeGuest
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 15 Mar 2017 12:01:13 +0000 (13:01 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 27 Mar 2017 11:13:29 +0000 (13:13 +0200)
Guests are handled in callers, but if something goes wrong (when it
cannot be added to virCapabilities, for example), there's no way for
them to free it properly.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/capabilities.c
src/conf/capabilities.h
src/libvirt_private.syms

index 9ab343bc65508ca905558fd8f74b59144c6041c0..87e274c06675c12fa6c467fa82b43af23ae2617e 100644 (file)
@@ -148,7 +148,7 @@ virCapabilitiesFreeGuestFeature(virCapsGuestFeaturePtr feature)
     VIR_FREE(feature);
 }
 
-static void
+void
 virCapabilitiesFreeGuest(virCapsGuestPtr guest)
 {
     size_t i;
index cfdc34a66b88992178ff3a8b6a7eeea97d5c31b2..8634fda144582ea4c22d2d09d23c4eccd42d5c5d 100644 (file)
@@ -248,6 +248,9 @@ void
 virCapabilitiesFreeMachines(virCapsGuestMachinePtr *machines,
                             int nmachines);
 
+void
+virCapabilitiesFreeGuest(virCapsGuestPtr guest);
+
 virCapsGuestPtr
 virCapabilitiesAddGuest(virCapsPtr caps,
                         int ostype,
index 9dc374173212c3e3b67e781a00044f3aa2be9d8a..f10322192cafb81a0968f001d8a083e3daec8d09 100644 (file)
@@ -53,6 +53,7 @@ virCapabilitiesAllocMachines;
 virCapabilitiesClearHostNUMACellCPUTopology;
 virCapabilitiesDomainDataLookup;
 virCapabilitiesFormatXML;
+virCapabilitiesFreeGuest;
 virCapabilitiesFreeMachines;
 virCapabilitiesFreeNUMAInfo;
 virCapabilitiesGetCpusForNodemask;