]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: Cleanup mailbox topic and cache
authorGeorge Joseph <gjoseph@digium.com>
Thu, 20 Sep 2018 15:15:48 +0000 (09:15 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 20 Sep 2018 18:47:27 +0000 (13:47 -0500)
commitfa1b8363746e3c6bc344061b4ec9885aa3f9d22b
tree161f9f9de7e71eea2560eb13d9862412c2803df0
parent1a9c69d7298b2560d66e0388768721bbc9caf6d6
app_voicemail:  Cleanup mailbox topic and cache

app_voicemail wasn't properly cleaning up the stasis cache or the
mwi topic pool when the module was unloaded or when a user was
deleted as a result of a reload.  This resulted in leaks in both
areas.

* app_voicemail now calls ast_delete_mwi_state_full when it frees
  a user structure and ast_delete_mwi_state_full in turn now calls
  the new stasis_topic_pool_delete_topic function to clear the topic
  from the pool.

Change-Id: Ide23144a4a810e7e0faad5a8e988d15947965df8
apps/app_voicemail.c
main/app.c