[Asterisk-code-review] cel: Ensure only one dial status per channel exists. (asterisk[13])
Joshua Colp
asteriskteam at digium.com
Wed Jun 8 11:33:06 CDT 2016
Hello Anonymous Coward #1000019,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/2972
to look at the new patch set (#2).
Change subject: cel: Ensure only one dial status per channel exists.
......................................................................
cel: Ensure only one dial status per channel exists.
CEL wrongly assumed that a channel would only have a single dial
event on it. This is incorrect. Particularly in a queue each
call attempt to a member will result in a dial event, adding
a new dial status in CEL without removing the old one. This
would cause the container to grow with only one dial status
being removed when the channel went away. The other dial status
entries would remain leaking memory.
This change fixes the memory leak by making the code not add
another dial status entry if one already exists for the channel.
This mirrors the existing behavior which would only ever use
the dial status of the first entry added.
Memory usage has also been decreased by storing the minimal
amount of information and the code has been cleaned up slightly.
ASTERISK-25262 #close
Change-Id: I5944eb923db17b6a0faa7317ff6abc9307c009fe
---
M main/cel.c
1 file changed, 55 insertions(+), 47 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/72/2972/2
--
To view, visit https://gerrit.asterisk.org/2972
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I5944eb923db17b6a0faa7317ff6abc9307c009fe
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
More information about the asterisk-code-review
mailing list