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:07:01 +0000 (16:07 -0500)
commite43c8af77cd3c2a40cd4a02419b574373c18ee85
treee28fa9fa9ff1c308927af702072f1995e81fd20e
parent637b37fb980822f50966f5292a786d03a859cd89
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