From 7151bf4480c4ee773ca263dace0a3ff49c453bdf Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Tue, 5 May 2015 14:21:27 +0200 Subject: [PATCH] fix memoery leak in uwsgi_setns Reported by Coverity as CID #1296721 --- core/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/utils.c b/core/utils.c index 06e57c61..9176f1c5 100755 --- a/core/utils.c +++ b/core/utils.c @@ -4454,6 +4454,7 @@ void uwsgi_setns(char *path) { } } free(fds); + close(ns_fd); break; } if (fds)