From: José Bollo Date: Fri, 3 Nov 2017 12:26:49 +0000 (+0100) Subject: afb-proto-ws: Fix unclosed file descriptor X-Git-Tag: eel_4.99.2~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=7ffecab08bf91e26ffedb393d9b8cb6151e2b836 afb-proto-ws: Fix unclosed file descriptor Change-Id: I3c831b4f803e283fc692fef66621a798a5e9296e Signed-off-by: José Bollo --- 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);