res_pjsip_config_wizard: Fix leaks and add check for malloc failure.
authorCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 23:44:01 +0000 (18:44 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 6 Nov 2017 23:44:01 +0000 (18:44 -0500)
commitf899368cd63e8558ead0f3d6eb1cee3d95f27b88
tree258dd9f5b5763bb8eb20f838bb61ee702a716bd9
parent637b37fb980822f50966f5292a786d03a859cd89
res_pjsip_config_wizard: Fix leaks and add check for malloc failure.

wizard_apply_handler():
- Free host if we fail to add it to the vector.

wizard_mapped_observer():
- Check for otw allocation failure.
- Free otw if we fail to add it to the vector.

Change-Id: Ib5d3bcabbd9c24dd8a3c9cc692a794a5f60243ad
res/res_pjsip_config_wizard.c