From 2bacd79c43521a9bc41964a183742cf82dedab55 Mon Sep 17 00:00:00 2001 From: "roberto@freebsd64" Date: Thu, 3 Feb 2011 11:10:16 +0100 Subject: [PATCH] fixed a couple of leaks --- plugins/python/uwsgi_pymodule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index 1cc1834b..4eb51e22 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -1312,6 +1312,8 @@ PyObject *py_uwsgi_send_multi_message(PyObject * self, PyObject * args) { } } + free(buffer); + return retobject; megamulticlear: @@ -2098,6 +2100,7 @@ PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) { } } + close(fd); return zero; }