summaryrefslogtreecommitdiff
path: root/funcs/func_config.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-07-27 21:12:14 +0000
committerRussell Bryant <russell@russellbryant.com>2008-07-27 21:12:14 +0000
commit4c372e41a2658e7f3bf8f2928dc761c0b1a78f25 (patch)
treea6507b697c1f5fa95c5320fd0f077dc5643e55b0 /funcs/func_config.c
parent6ff47b3729a8d164ac69bca781b82b5757a7d9c1 (diff)
Add a missing unlock within error handling
(closes issue #13176) Reported by: pj git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@134005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_config.c')
-rw-r--r--funcs/func_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_config.c b/funcs/func_config.c
index 33f822b4a..0c734e0c9 100644
--- a/funcs/func_config.c
+++ b/funcs/func_config.c
@@ -146,6 +146,7 @@ static int config_function_read(struct ast_channel *chan, const char *cmd, char
if (!(val = ast_variable_retrieve(cfg, args.category, args.variable))) {
ast_log(LOG_ERROR, "'%s' not found in [%s] of '%s'\n", args.variable,
args.category, args.filename);
+ AST_RWLIST_UNLOCK(&configs);
return -1;
}