diff options
Diffstat (limited to 'pjsip-apps/src/python')
-rw-r--r-- | pjsip-apps/src/python/_pjsua.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pjsip-apps/src/python/_pjsua.c b/pjsip-apps/src/python/_pjsua.c index 1d70e042..0966d90e 100644 --- a/pjsip-apps/src/python/_pjsua.c +++ b/pjsip-apps/src/python/_pjsua.c @@ -3103,8 +3103,9 @@ static PyObject *py_pjsua_call_make_call(PyObject *pSelf, PyObject *pArgs) if (pool != NULL) pj_pool_release(pool); - if (status != PJ_SUCCESS) + if (status != PJ_SUCCESS) { Py_XDECREF(pUserData); + } return Py_BuildValue("ii", status, call_id); } @@ -3244,8 +3245,9 @@ static PyObject *py_pjsua_call_set_user_data(PyObject *pSelf, PyObject *pArgs) status = pjsua_call_set_user_data(call_id, (void*)pUserData); - if (status != PJ_SUCCESS) + if (status != PJ_SUCCESS) { Py_XDECREF(pUserData); + } return Py_BuildValue("i", status); } |