[asterisk-bugs] [JIRA] (ASTERISK-24491) Memory leak in res_hep

Zane Conkle (JIRA) noreply at issues.asterisk.org
Tue Nov 4 16:44:29 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=223277#comment-223277 ] 

Zane Conkle commented on ASTERISK-24491:
----------------------------------------

>From IRC:

[4:28pm] coreyfarrell: without much understanding of the code, the leak might be in hepv3_send_packet.  looks like that function is supposed to take over 1 reference to the param capture_info, but if (!config || !config->general->enabled) { return 0; }
[4:29pm] coreyfarrell: If I'm right "ao2_ref(capture_info, -1);" before the "return 0;" should fix it

> Memory leak in res_hep
> ----------------------
>
>                 Key: ASTERISK-24491
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24491
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_hep
>    Affects Versions: 13.0.0
>            Reporter: Zane Conkle
>         Attachments: xaa, xab, xac
>
>
> Received an alert that one of our Asterisk boxes was using 7.3Gb of ram. Recompiled with malloc. Discovered that res_hep.c was constantly chewing through memory. Attached is the memory allocation dump after 30 minutes of uptime.
> We are not using res_hep and do not have a config file for it; I can try to noload that module. In attempt to narrow down the problem I attempted to add a hep.conf file and reload the module and received the following:
> {code}
> pbx*CLI> reload res_hep
> The module 'res_hep' was not properly initialized. Before reloading the module, you must run "module load res_hep" and fix whatever is preventing the module from being initialized.
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list