summaryrefslogtreecommitdiff
path: root/main/manager.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2014-07-23 01:28:57 +0000
committerCorey Farrell <git@cfware.com>2014-07-23 01:28:57 +0000
commitef697de4a56b42da2399a368e36e54eea9b7ce3d (patch)
tree312e1fe049fd290cbefb1a90890fa2e9ece9ee3e /main/manager.c
parentf613fc24fb441f7447894e3b437256736475d116 (diff)
res_fax: unregister manager actions on unload
* Unregister manager actions FAXSessions, FAXSession and FAXStats at unload. * Update ast_manager_register2 use ao2_t_alloc tagged with the action name. ASTERISK-24058 #close Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/3831/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index 35ba5d46c..f5d00d1d3 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -6317,7 +6317,7 @@ int ast_manager_register2(const char *action, int auth, int (*func)(struct manse
{
struct manager_action *cur;
- cur = ao2_alloc(sizeof(*cur), action_destroy);
+ cur = ao2_t_alloc(sizeof(*cur), action_destroy, action);
if (!cur) {
return -1;
}