]> 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:12 +0000 (16:12 -0500)
commitb4240bea6c18c81dba331abb6a42106d4cdc52e0
tree3b6ebc4cffb9170ddf3bd0714514e0e4376e8a4d
parentad7860fd194b69a86f43b41d6c20cdb2b653481d
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