Skip to content
Snippets Groups Projects
Commit 4c372e41 authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent 6ff47b37
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment