diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-05-11 20:07:44 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-05-11 20:07:44 +0000 |
commit | f9c578a8a05beb342a4e02648c35b4b2939d11ba (patch) | |
tree | f91bfa1dc51a7b5350dd534e72ed17e37cdd2b25 /dnsmgr.c | |
parent | 126ce7882c857925f24573b4e82fddc888e1ace3 (diff) |
- The recent change to linklists.h broke the build on linux for some reason.
So, I have removed all of the uses of AST_LIST_HEAD_INIT and replaced them
with the equivalent static initializations.
- On passing, fix a memory leak in the unload_module() function of chan_agent.
The agents list mutex was never destroyed, and the elements in the agents
list were not freed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'dnsmgr.c')
-rw-r--r-- | dnsmgr.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -58,7 +58,7 @@ struct ast_dnsmgr_entry { char name[1]; }; -static AST_LIST_HEAD(entry_list, ast_dnsmgr_entry) entry_list; +static AST_LIST_HEAD_STATIC(entry_list, ast_dnsmgr_entry); AST_MUTEX_DEFINE_STATIC(refresh_lock); @@ -285,7 +285,6 @@ int dnsmgr_init(void) ast_log(LOG_ERROR, "Unable to create schedule context.\n"); return -1; } - AST_LIST_HEAD_INIT(&entry_list); ast_cli_register(&cli_reload); ast_cli_register(&cli_status); return do_reload(1); |