res_pjsip_config_wizard: Memory leak in module_unload
authorBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Mon, 10 Oct 2016 15:59:38 +0000 (11:59 -0400)
committerBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Mon, 10 Oct 2016 16:01:20 +0000 (12:01 -0400)
commit3ab7fae96b610a69c0a4f7fa639c658810858e63
tree1fab5a199c87c3af41236716b87f87d9b8a3494b
parent7126194187f1ddae1a6e7a7f80f5e84bafd6db4b
res_pjsip_config_wizard: Memory leak in module_unload

Fixed a memory leak. It removes only the first element.
Added a useful feature in vector.h to remove all items
under the CMP through a callback function / macro.

ASTERISK-26453 #close

Change-Id: I84508353463456d2495678f125738e20052da950
include/asterisk/vector.h
res/res_pjsip_config_wizard.c