ast_format_cap_append_by_type: Resolve codec reference leak.
authorCorey Farrell <git@cfware.com>
Thu, 7 Jan 2016 15:39:19 +0000 (10:39 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 7 Jan 2016 15:39:19 +0000 (10:39 -0500)
commit5d8c42c6d39eb1261900a80993e874329c694412
tree306742f66bc937ee28820426f11ae166a65e9c81
parent0f87b89b3299f57ba799d4e595ba491a1c171dbf
ast_format_cap_append_by_type: Resolve codec reference leak.

This resolves a reference leak caused by ASTERISK-25535.  The pointer
returned by ast_format_get_codec is saved so it can be released.

ASTERISK-25664 #close

Change-Id: If9941b1bf4320b2c59056546d6bce9422726d1ec
main/format_cap.c