]> xenbits.xensource.com Git - libvirt.git/commitdiff
python: Fix typo in bindings
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 23 May 2011 08:51:46 +0000 (10:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 23 May 2011 11:48:19 +0000 (13:48 +0200)
This typo caused a bug in which we wanted to free() invalid pointer.

python/libvirt-override.c

index 11e1d0c03e41027ea064ec9ed38da6d43c8abda4..a151e78b7bbd442a742601a0062d4689c691c139 100644 (file)
@@ -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);