diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2018-01-04 13:53:20 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2018-01-04 13:53:20 -0600 |
commit | 8187bde9bf3482b7457c10ec98dcf8fc3ab86714 (patch) | |
tree | fe5d47f5c5bc245247f4d9ba84e05761db17aa68 /funcs | |
parent | 2fac32a37adbe92922212e17f2989cf1b0333832 (diff) | |
parent | e3c9314a2ed93147475d3f04ab9d58b0474c9356 (diff) |
Merge "func_odbc: Add missing unlock's to acf_odbc_read."
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_odbc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index ed8987ea4..0f6b65e7d 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -791,6 +791,7 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha if (!(resultset = ast_calloc(1, sizeof(*resultset)))) { pbx_builtin_setvar_helper(chan, "ODBCROWS", rowcount); pbx_builtin_setvar_helper(chan, "ODBCSTATUS", status); + AST_RWLIST_UNLOCK(&queries); ast_autoservice_stop(chan); return -1; } @@ -807,6 +808,7 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha if (!(resultset = ast_calloc(1, sizeof(*resultset)))) { pbx_builtin_setvar_helper(chan, "ODBCROWS", rowcount); pbx_builtin_setvar_helper(chan, "ODBCSTATUS", status); + AST_RWLIST_UNLOCK(&queries); ast_autoservice_stop(chan); return -1; } |