[PATCH] python: Fix typo in bindings

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

 



This typo caused a bug in which we wanted to free() invalid pointer.
---
 python/libvirt-override.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/python/libvirt-override.c b/python/libvirt-override.c
index 11e1d0c..a151e78 100644
--- a/python/libvirt-override.c
+++ b/python/libvirt-override.c
@@ -2945,7 +2945,7 @@ libvirt_virEventRegisterImpl(ATTRIBUTE_UNUSED PyObject * self,
         return VIR_PY_INT_FAIL;
 
     /* Get argument string representations (for error reporting) */
-    addHandleName = py_str(addTimeoutObj);
+    addHandleName = py_str(addHandleObj);
     updateHandleName = py_str(updateHandleObj);
     removeHandleName = py_str(removeHandleObj);
     addTimeoutName = py_str(addTimeoutObj);
-- 
1.7.5.rc3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]