mirror of https://git.kore.io/kore.git
cleanup data if required.
This commit is contained in:
parent
f78e8f2fd2
commit
6bfba49ba5
|
@ -759,6 +759,7 @@ python_websocket_broadcast(PyObject *self, PyObject *args)
|
|||
c = NULL;
|
||||
} else {
|
||||
if (!PyObject_TypeCheck(pysrc, &pyconnection_type)) {
|
||||
PyBuffer_Release(&data);
|
||||
PyErr_SetString(PyExc_TypeError, "invalid parameters");
|
||||
return (NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue