Be sure to close timing file descriptor
authorMark Spencer <markster@digium.com>
Fri, 4 Jul 2003 16:49:11 +0000 (16:49 +0000)
committerMark Spencer <markster@digium.com>
Fri, 4 Jul 2003 16:49:11 +0000 (16:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1162 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 8d5e9d8..4eddb9c 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -548,6 +548,8 @@ void ast_channel_free(struct ast_channel *chan)
                close(fd);
        if ((fd = chan->pvt->alertpipe[1]) > -1)
                close(fd);
+       if ((fd = chan->timingfd) > -1)
+               close(fd);
        f = chan->pvt->readq;
        chan->pvt->readq = NULL;
        while(f) {