implemented psgi cleanup handlers, and fixed a leak in rpc call

This commit is contained in:
roberto@quantal64
2012-09-07 19:09:22 +02:00
parent f2e27f5154
commit cf480e499c
6 changed files with 81 additions and 10 deletions
+2
View File
@@ -313,6 +313,7 @@ PyObject *py_uwsgi_call(PyObject * self, PyObject * args) {
}
UWSGI_RELEASE_GIL;
// response must always be freed
char *response = uwsgi_do_rpc(NULL, func, argc - 1, argv, argvs, &size);
UWSGI_GET_GIL;
@@ -322,6 +323,7 @@ PyObject *py_uwsgi_call(PyObject * self, PyObject * args) {
return ret;
}
free(response);
Py_INCREF(Py_None);
return Py_None;