]> git.ipfire.org Git - thirdparty/asterisk.git/commit
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:46:54 +0000 (18:46 -0500)
commit4f75655cb679e4bc2b68c90427d9d086d3caf3c5
tree66736704c9289aab364f85900ec89a03159f7eef
parentad7860fd194b69a86f43b41d6c20cdb2b653481d
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