From: Tim Wiederhake Date: Mon, 10 May 2021 12:48:39 +0000 (+0200) Subject: conf: node_device: Register autoptr cleanup function for virNodeDevCapsDef X-Git-Tag: v7.4.0-rc1~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27b09ff09f47cecadfeb3e4a98d57710a55c3b46;p=thirdparty%2Flibvirt.git conf: node_device: Register autoptr cleanup function for virNodeDevCapsDef Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- diff --git a/src/conf/node_device_conf.h b/src/conf/node_device_conf.h index 85790ad96c..a60562e4fe 100644 --- a/src/conf/node_device_conf.h +++ b/src/conf/node_device_conf.h @@ -377,6 +377,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNodeDeviceDef, virNodeDeviceDefFree); void virNodeDevCapsDefFree(virNodeDevCapsDef *caps); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNodeDevCapsDef, virNodeDevCapsDefFree); + #define VIR_CONNECT_LIST_NODE_DEVICES_FILTERS_CAP \ (VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM | \ VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV | \