From 219a6a4add60d41ad08730cdf506a2f63b0015a0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 6 Jul 2013 18:49:59 +0200 Subject: misdn: Fix a file descriptor leak in _mi_e1_line_update The socket is created to get information about the ISDN system and can be released once we have found the information. Fixes: Coverity CID 1040691 --- src/input/misdn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/misdn.c b/src/input/misdn.c index a72a21ed..59668179 100644 --- a/src/input/misdn.c +++ b/src/input/misdn.c @@ -640,6 +640,7 @@ static int _mi_e1_line_update(struct e1inp_line *line) fprintf(stdout, " nrbchan: %d\n", devinfo.nrbchan); fprintf(stdout, " name: %s\n", devinfo.name); #endif + close(sk); if (!(devinfo.Dprotocols & (1 << ISDN_P_NT_E1))) { fprintf(stderr, "error: card is not of type E1 (NT-mode)\n"); -- cgit v1.2.3