summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-05-11 20:07:44 +0000
committerRussell Bryant <russell@russellbryant.com>2006-05-11 20:07:44 +0000
commitf9c578a8a05beb342a4e02648c35b4b2939d11ba (patch)
treef91bfa1dc51a7b5350dd534e72ed17e37cdd2b25 /res
parent126ce7882c857925f24573b4e82fddc888e1ace3 (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 'res')
-rw-r--r--res/res_features.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/res_features.c b/res/res_features.c
index c5dfbcfa6..c523f8811 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -782,7 +782,7 @@ struct ast_call_feature builtin_features[] =
};
-static AST_LIST_HEAD(feature_list,ast_call_feature) feature_list;
+static AST_LIST_HEAD_STATIC(feature_list,ast_call_feature);
/*! \brief register new feature into feature_list*/
void ast_register_feature(struct ast_call_feature *feature)
@@ -2104,7 +2104,6 @@ static int load_module(void *mod)
int res;
__mod_desc = mod;
- AST_LIST_HEAD_INIT(&feature_list);
memset(parking_ext, 0, sizeof(parking_ext));
memset(parking_con, 0, sizeof(parking_con));