[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [libvirt-python PATCH 2/3] Add missing virPyDictToTypedParams for libvirt_virDomainBlockCopy



Need to free params like similar API's such as libvirt_virDomainMigrate3
and libvirt_virDomainMigrateToURI3.

Signed-off-by: John Ferlan <jferlan redhat com>
---
 libvirt-override.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libvirt-override.c b/libvirt-override.c
index 761b71b..0353306 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -8784,6 +8784,7 @@ libvirt_virDomainBlockCopy(PyObject *self ATTRIBUTE_UNUSED,
     c_retval = virDomainBlockCopy(dom, disk, destxml, params, nparams, flags);
     LIBVIRT_END_ALLOW_THREADS;
 
+    virTypedParamsFree(params, nparams);
     return libvirt_intWrap(c_retval);
 }
 
-- 
2.17.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]