[asterisk-dev] [Code Review] 3751: media_formats: resolve double unref of fmt in sip_new, clear fr->mallocd when we're not freeing fr.

Corey Farrell reviewboard at asterisk.org
Fri Jul 11 17:26:10 CDT 2014


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

(Updated July 11, 2014, 5:26 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers and Matt Jordan.


Changes
-------

Committed in revision 418417


Repository: Asterisk


Description
-------

* chan_sip: sip_new unref's fmt twice.  The unref that remains is at 8186.
The check for if (fmt) should no longer be needed due addition of ast_format_none.  This check was ineffective anyways since fmt was used past the if statement.

* frame.c: ensure fr->mallocd is cleared if we are not freeing fr.


Diffs
-----

  /team/group/media_formats-reviewed-trunk/main/frame.c 418416 
  /team/group/media_formats-reviewed-trunk/channels/chan_sip.c 418416 

Diff: https://reviewboard.asterisk.org/r/3751/diff/


Testing
-------


Thanks,

Corey Farrell

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


More information about the asterisk-dev mailing list