From da3cf563ba87b9cd244f931cfe5c23d17dabafd5 Mon Sep 17 00:00:00 2001 From: russell Date: Thu, 11 May 2006 20:07:44 +0000 Subject: - 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: http://svn.digium.com/svn/asterisk/trunk@26990 f38db490-d61c-443f-a65b-d21fe96a405b --- dnsmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dnsmgr.c') diff --git a/dnsmgr.c b/dnsmgr.c index fac0c8daf..8e7f76453 100644 --- a/dnsmgr.c +++ b/dnsmgr.c @@ -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); -- cgit v1.2.3