diff options
author | Matthew Jordan <mjordan@digium.com> | 2012-12-06 14:26:13 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2012-12-06 14:26:13 +0000 |
commit | 905b2a5932e46957344e5cb845d2587ee289dad6 (patch) | |
tree | 7ec4daff4e52634cd0a76fbaa685503f55658d7e /main/named_acl.c | |
parent | d7372766dc236a48192d2e7f28617d65b16836fb (diff) |
Fix memory leak in 'manager show event' when command entered incorrectly
When the CLI command 'manager show event' was run incorrectly and its usage
instructions returned, a reference to the event container was leaked. This
would prevent the container from being reclaimed when Asterisk exits. We now
properly decrement the count on the ao2 object using the nifty RAII_VAR macro.
Thanks to Russell for helping me stumble on this, and Terry for writing that
ridiculously helpful macro.
........
Merged revisions 377319 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/named_acl.c')
0 files changed, 0 insertions, 0 deletions