Commit 7bd4b6dd authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #450 from pubnub/pr/0.23.x-1

Fix a memory leak in ObjectHandling.c
parents 9d5ee4fa 4818c9e8
...@@ -1445,8 +1445,12 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec ...@@ -1445,8 +1445,12 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObjec
} }
#else #else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
PyObject* args = PyTuple_Pack(1, arg); PyObject *result;
return (likely(args)) ? __Pyx_PyObject_Call(func, args, NULL) : NULL; PyObject *args = PyTuple_Pack(1, arg);
if (unlikely(!args)) return NULL;
result = __Pyx_PyObject_Call(func, args, NULL);
Py_DECREF(args);
return result;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment