From 87e8f118d31fdef785d1bed5811dd771fac485a3 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Fri, 19 Aug 2011 16:35:16 +0200 Subject: [PATCH] fix refcnt in async-disabled compilation --- plugins/python/pyloader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index 1504a014..f2c67002 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -248,6 +248,8 @@ int init_uwsgi_app(int loader, void *arg1, struct wsgi_request *wsgi_req, PyThre } #else + // add start_response on WSGI app + Py_INCREF((PyObject *)up.wsgi_spitout); wi->wsgi_args = PyTuple_New(wi->argc); if (app_type == PYTHON_APP_TYPE_WSGI) { if (PyTuple_SetItem(wi->wsgi_args, 1, up.wsgi_spitout)) {