Be sure to close timing file descriptor

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-07-04 16:49:11 +00:00
parent c2ad77b27f
commit fd1ca04d76
1 changed files with 2 additions and 0 deletions

View File

@ -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) {