[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:00:20 CDT 2014


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

Review request for Asterisk Developers and Matt Jordan.


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/15b0c1ee/attachment.html>


More information about the asterisk-dev mailing list