From 364a580090b7182b521bafc092d02a37552b2935 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Mon, 21 Feb 2011 10:17:28 +0100 Subject: [PATCH] fixed a leak in the spooler --- plugins/python/uwsgi_pymodule.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 0279ad10..f7384fec 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -161,7 +161,7 @@ PyObject *py_uwsgi_listen_queue(PyObject * self, PyObject * args) { #ifdef __linux__ return PyInt_FromLong(uwsgi.shared->ti.tcpi_unacked); #else - return NULL + return NULL; #endif } @@ -2127,6 +2127,7 @@ PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) { } close(fd); + free(buffer); return zero; } @@ -2134,8 +2135,8 @@ PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) { goto clear2; clear3: - free(buffer); Py_DECREF(zero); + free(buffer); clear2: close(fd); clear: