From 7ffecab08bf91e26ffedb393d9b8cb6151e2b836 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 3 Nov 2017 13:26:49 +0100 Subject: [PATCH] afb-proto-ws: Fix unclosed file descriptor MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I3c831b4f803e283fc692fef66621a798a5e9296e Signed-off-by: José Bollo --- src/afb-proto-ws.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afb-proto-ws.c b/src/afb-proto-ws.c index 3c8922cd..09039763 100644 --- a/src/afb-proto-ws.c +++ b/src/afb-proto-ws.c @@ -1059,6 +1059,7 @@ static void on_hangup(void *closure) } if (protows->fd >= 0) { + close(protows->fd); protows->fd = -1; if (protows->on_hangup) protows->on_hangup(protows->closure); -- 2.16.6