[asterisk-bugs] [JIRA] (ASTERISK-22126) Bridging: Memory leak for channels that hang up if they were in the bridging system

Kinsey Moore (JIRA) noreply at issues.asterisk.org
Wed Jul 31 12:27:03 CDT 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kinsey Moore updated ASTERISK-22126:
------------------------------------

    Description: 
What's leaking as reported by the memory allocation summary feature of MALLOC_DEBUG:
       728 bytes in          7 allocations by ast_channel_get_manager_vars() line  7506 of channel.c
       728 bytes in          7 allocations by ast_channel_get_vars() line  7480 of channel.

7506: ret = ao2_alloc(sizeof(*ret), varshead_dtor);
7480: ret = ao2_alloc(sizeof(*ret), varshead_dtor);

Reproduction:
If a channel ever enters the bridging system, these two allocations will be leaked when the channel dies.

Easiest way to reproduce this is by calling bridgewait() on a channel.
Another easy method to reproduce this is to just have one device do a simple call to another.

  was:
What's leaking:
       728 bytes in          7 allocations by ast_channel_get_manager_vars() line  7506 of channel.c
       728 bytes in          7 allocations by ast_channel_get_vars() line  7480 of channel.

7506: ret = ao2_alloc(sizeof(*ret), varshead_dtor);
7480: ret = ao2_alloc(sizeof(*ret), varshead_dtor);

Reproduction:
If a channel ever enters the bridging system, these two allocations will be leaked when the channel dies.

Easiest way to reproduce this is by calling bridgewait() on a channel.
Another easy method to reproduce this is to just have one device do a simple call to another.

    
> Bridging: Memory leak for channels that hang up if they were in the bridging system
> -----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22126
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22126
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Bridging
>    Affects Versions: SVN, 12
>            Reporter: Jonathan Rose
>            Assignee: Kinsey Moore
>
> What's leaking as reported by the memory allocation summary feature of MALLOC_DEBUG:
>        728 bytes in          7 allocations by ast_channel_get_manager_vars() line  7506 of channel.c
>        728 bytes in          7 allocations by ast_channel_get_vars() line  7480 of channel.
> 7506: ret = ao2_alloc(sizeof(*ret), varshead_dtor);
> 7480: ret = ao2_alloc(sizeof(*ret), varshead_dtor);
> Reproduction:
> If a channel ever enters the bridging system, these two allocations will be leaked when the channel dies.
> Easiest way to reproduce this is by calling bridgewait() on a channel.
> Another easy method to reproduce this is to just have one device do a simple call to another.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list