summaryrefslogtreecommitdiff
path: root/python/modules/IcePy/BatchRequestInterceptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/modules/IcePy/BatchRequestInterceptor.cpp')
-rw-r--r--python/modules/IcePy/BatchRequestInterceptor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/modules/IcePy/BatchRequestInterceptor.cpp b/python/modules/IcePy/BatchRequestInterceptor.cpp
index b4d36366ee1..95e7ed1345a 100644
--- a/python/modules/IcePy/BatchRequestInterceptor.cpp
+++ b/python/modules/IcePy/BatchRequestInterceptor.cpp
@@ -257,6 +257,7 @@ IcePy::BatchRequestInterceptor::enqueue(const Ice::BatchRequest& request, int qu
obj->proxy = 0;
PyObjectHandle tmp = PyObject_CallMethod(_interceptor.get(), STRCAST("enqueue"), STRCAST("Oii"), obj, queueCount,
queueSize);
+ Py_DECREF(reinterpret_cast<PyObject*>(obj));
if(!tmp.get())
{
throwPythonException();