mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
don't leak almost 200 bytes for each new channel (issue #6330)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -111,6 +111,7 @@ static void del_chan(char *name)
|
|||||||
prev->next = chan->next;
|
prev->next = chan->next;
|
||||||
else
|
else
|
||||||
chans = chan->next;
|
chans = chan->next;
|
||||||
|
free(chan);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
prev = chan;
|
prev = chan;
|
||||||
|
Reference in New Issue
Block a user