[asterisk-dev] [Code Review] 4153: manager: HTTP connections leak references

Matt Jordan reviewboard at asterisk.org
Fri Nov 7 16:21:21 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4153/#review13710
-----------------------------------------------------------

Ship it!



/branches/11/main/manager.c
<https://reviewboard.asterisk.org/r/4153/#comment24205>

    Nit: For some reason, I find the inverted logic harder to read. How about:
    
    if (session) {
        if (blastaway) {
            session_destroy(session);
        } else {
            if (session->f) {
                fclose(session->f);
                session->f = NULL;
            }
            unref_mansession(session);
        }
    }
    
    


- Matt Jordan


On Nov. 6, 2014, 5:29 a.m., Corey Farrell wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4153/
> -----------------------------------------------------------
> 
> (Updated Nov. 6, 2014, 5:29 a.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-24505
>     https://issues.asterisk.org/jira/browse/ASTERISK-24505
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Fix reference leak that happens if (session && !blastaway).
> 
> 
> Diffs
> -----
> 
>   /branches/11/main/manager.c 427380 
> 
> Diff: https://reviewboard.asterisk.org/r/4153/diff/
> 
> 
> Testing
> -------
> 
> tests/manager/config/basic against 13.
> 
> 
> Thanks,
> 
> Corey Farrell
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141107/99704084/attachment.html>


More information about the asterisk-dev mailing list