Skip to content

Commit

Permalink
fix refcnt in async-disabled compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@debian32 committed Aug 19, 2011
1 parent 3ae78cc commit 87e8f11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/python/pyloader.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit 87e8f11

Please sign in to comment.