mirror of https://github.com/asterisk/asterisk
PR #700 added a preferred_format for the struct ast_rtp_codecs,
but when set the preferred_format it leaks an astobj2 ast_format.
In the next code
ast_rtp_codecs_set_preferred_format(&codecs, ast_format_cap_get_format(joint, 0));
both functions ast_rtp_codecs_set_preferred_format
and ast_format_cap_get_format increases the ao2 reference count.
Fixes: #856
(cherry picked from commit 3e2bb5a01a
)
pull/886/head^2
parent
392322e11c
commit
c2ba4295b5
Loading…
Reference in new issue