mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 03:59:01 +00:00
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:
@@ -548,6 +548,8 @@ void ast_channel_free(struct ast_channel *chan)
|
|||||||
close(fd);
|
close(fd);
|
||||||
if ((fd = chan->pvt->alertpipe[1]) > -1)
|
if ((fd = chan->pvt->alertpipe[1]) > -1)
|
||||||
close(fd);
|
close(fd);
|
||||||
|
if ((fd = chan->timingfd) > -1)
|
||||||
|
close(fd);
|
||||||
f = chan->pvt->readq;
|
f = chan->pvt->readq;
|
||||||
chan->pvt->readq = NULL;
|
chan->pvt->readq = NULL;
|
||||||
while(f) {
|
while(f) {
|
||||||
|
Reference in New Issue
Block a user