PBX: Handle errors from AST_VECTOR_APPEND.
authorCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 21:16:35 +0000 (16:16 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 21:16:35 +0000 (16:16 -0500)
commit5762f72425c74c7277462dd4f74a90a3755931ab
treeb2194e5e2571674694c0368966a569356f92e15f
parent637b37fb980822f50966f5292a786d03a859cd89
PBX: Handle errors from AST_VECTOR_APPEND.

This resolves potentials leaks on AST_VECTOR_APPEND error in:
* ast_context_add_include2
* ast_context_add_switch2
* ast_context_add_ignorepat2

Change-Id: Ib60e95c4f622fa3b832d87227c0523a695d736b6
main/pbx.c