]> git.ipfire.org Git - thirdparty/asterisk.git/commit
format_cap: Fix leak on AST_VECTOR_APPEND error.
authorCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 21:07:01 +0000 (16:07 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 21:12:05 +0000 (16:12 -0500)
commitc27df36f116ecbca64fefbb3170237faa1be550c
tree508f3e278a4520f3c9e8fa0f44d26f46fbac72c7
parent457abd06b4b6e89f80e106ef710bf2cf8932b7f8
format_cap: Fix leak on AST_VECTOR_APPEND error.

format_cap_framed_init can fail on AST_VECTOR_APPEND.  This should
report failure to the caller and clean the newly allocated frame.

Change-Id: Ica0661235bf09497bf23d844ceb01f21b41a55b0
main/format_cap.c