From df6d9bfc1b24ecf4ebd1c86a57fc39f3b25abbb2 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 4 Dec 2015 23:21:31 +0100 Subject: [PATCH] Pinba plugin: close fd on error CID #38001 Signed-off-by: Florian Forster --- src/pinba.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pinba.c b/src/pinba.c index e7bf2aac..1a077065 100644 --- a/src/pinba.c +++ b/src/pinba.c @@ -336,6 +336,7 @@ static int pb_add_socket (pinba_socket_t *s, /* {{{ */ char errbuf[1024]; ERROR ("pinba plugin: bind(2) failed: %s", sstrerror (errno, errbuf, sizeof (errbuf))); + close (fd); return (0); } -- 2.11.0