kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 6bfba49ba57b07e30490a55995095a8fc624665e
parent f78e8f2fd2e3118b01f49431aa95767de134d3b2
Author: Joris Vink <joris@coders.se>
Date:   Mon, 30 Jan 2017 21:50:36 +0100

cleanup data if required.

Diffstat:
src/python.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -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); }