From e1756db4dbb330f1832e27e9d2cf6be5cad1fc1d Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 16 Sep 2008 18:04:59 +0000 Subject: Close the /dev/dahdi/channel file handle if we're unable to associate it with a particular channel. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4914 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- dahdi_cfg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dahdi_cfg.c b/dahdi_cfg.c index 9859f41..c3a7ae0 100644 --- a/dahdi_cfg.c +++ b/dahdi_cfg.c @@ -678,6 +678,7 @@ static void apply_fiftysix(void) } if (ioctl(chanfd, DAHDI_SPECIFY, &x)) { + close(chanfd); continue; } -- cgit v1.2.3