diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-06 18:49:59 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-06 18:49:59 +0200 |
commit | 219a6a4add60d41ad08730cdf506a2f63b0015a0 (patch) | |
tree | 1d43d9e6636bcb32ed485a51af2e7cb4c2e435e6 | |
parent | 2e11f5c7dc3e1cda51853d31ffe585658ac39640 (diff) |
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
-rw-r--r-- | src/input/misdn.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |