[asterisk-dev] [Code Review] 3200: pjsip_cli: Memory leak in ast_sip_cli_print_sorcery_objectset

rmudgett reviewboard at asterisk.org
Fri Feb 7 16:49:06 CST 2014


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

Ship it!


Ship It!

- rmudgett


On Feb. 7, 2014, 4:18 p.m., George Joseph wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3200/
> -----------------------------------------------------------
> 
> (Updated Feb. 7, 2014, 4:18 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-23266
>     https://issues.asterisk.org/jira/browse/ASTERISK-23266
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> I left out 2 ast_variables_destroy() calls so the variables allocated by ast_sorcery_objectset_create() never get released.
> 
> It leaks whenever someone does a 
> pjsip show <object_type> <object_id>
> from the command line.
> 
> Added the 2 calls before the error and success returns.
> 
> 
> Diffs
> -----
> 
>   branches/12/res/res_pjsip/pjsip_cli.c 407750 
>   branches/12/main/config.c 407750 
> 
> Diff: https://reviewboard.asterisk.org/r/3200/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> George Joseph
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140207/290b37f3/attachment-0001.html>


More information about the asterisk-dev mailing list