diff options
author | Corey Farrell <git@cfware.com> | 2018-01-03 20:07:44 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2018-01-04 09:13:15 -0600 |
commit | 74b6fafbe63c5facb0813002194af13d05b58843 (patch) | |
tree | c34e0a9395bcb32fa291339e7f9fcf0e92ed4ed3 | |
parent | d25a9bc7d32cc6e0b5c91f82bcb1e474adf1991c (diff) |
func_odbc: Add missing unlock's to acf_odbc_read.
Change-Id: I828329ecbd252ae8f27a369a046d2b03102b07c6
-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 5785441ec..a8f2c8d0b 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -793,6 +793,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; } @@ -809,6 +810,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; } |