cleanup data if required.

This commit is contained in:
Joris Vink 2017-01-30 21:50:36 +01:00
parent f78e8f2fd2
commit 6bfba49ba5
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}