From 385458b291ddc70c4182285d52cf5f20946f4bb2 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Sat, 12 Jan 2013 17:17:30 +0100 Subject: [PATCH] fixed gevent leak --- plugins/gevent/gevent.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gevent/gevent.c b/plugins/gevent/gevent.c index 1830c6c0..1a53d024 100644 --- a/plugins/gevent/gevent.c +++ b/plugins/gevent/gevent.c @@ -275,6 +275,11 @@ ssize_t uwsgi_gevent_hook_input_read(struct wsgi_request *wsgi_req, char *tmp_bu stop_the_watchers } + Py_DECREF(current); + Py_DECREF(current_greenlet); + Py_DECREF(watcher); + Py_DECREF(timer); + return *tmp_pos; }