Remove NULL returns in non-exception error conditions

This commit is contained in:
R. Tyler Ballance 2009-07-08 14:56:47 -07:00
parent 270593d49c
commit 2f233b8d4e
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ static PyObject *py_new_state(PyObject *self, PyObject *args, PyObject *kwargs)
if (!PyCObject_Check(rc)) {
if (state)
ecc_free_state(state);
return NULL;
Py_RETURN_NONE;
}
return rc;
}
@ -176,7 +176,7 @@ static PyObject *py_new_keypair(PyObject *self, PyObject *args, PyObject *kwargs
if (!PyCObject_Check(rc)) {
if (kp)
_release_keypair(kp);
return NULL;
Py_RETURN_NONE;
}
return rc;
}