[asterisk-dev] [Code Review] 3904: Replace some code with ao2_replace().

rmudgett reviewboard at asterisk.org
Mon Aug 11 16:52:41 CDT 2014


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

Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

Use ao2_replace() instead of ao2_cleanup(); ao2_bump().
ao2_replace() has the advantange of not altering the ref count if the replaced pointer is the same.


Diffs
-----

  /branches/13/main/channel_internal_api.c 420838 
  /branches/13/main/channel.c 420838 

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


Testing
-------

Compiler is still happy.


Thanks,

rmudgett

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


More information about the asterisk-dev mailing list