From db469aeb63fe471b397b26b61db15593d284078b Mon Sep 17 00:00:00 2001 From: huyan Date: Mon, 17 Jun 2019 12:05:33 +0800 Subject: [PATCH] backport remove resource leak from nfs/rpcmisc.c --- support/nfs/rpcmisc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c index abe89ba..d84c04f 100644 --- a/support/nfs/rpcmisc.c +++ b/support/nfs/rpcmisc.c @@ -102,6 +102,7 @@ makesock(int port, int proto) if (bind(sock, (struct sockaddr *) &sin, sizeof(sin)) == -1) { xlog(L_FATAL, "Could not bind name to socket: %s", strerror(errno)); + close(sock); return -1; } -- 1.8.3.1