[Asterisk-code-review] func odbc: Add missing unlock's to acf odbc read. (asterisk[13])
Corey Farrell
asteriskteam at digium.com
Thu Jan 4 09:13:16 CST 2018
Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7795
Change subject: func_odbc: Add missing unlock's to acf_odbc_read.
......................................................................
func_odbc: Add missing unlock's to acf_odbc_read.
Change-Id: I828329ecbd252ae8f27a369a046d2b03102b07c6
---
M funcs/func_odbc.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/95/7795/1
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index 5785441..a8f2c8d 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -793,6 +793,7 @@
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 @@
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;
}
--
To view, visit https://gerrit.asterisk.org/7795
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I828329ecbd252ae8f27a369a046d2b03102b07c6
Gerrit-Change-Number: 7795
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180104/b73a6ca6/attachment.html>
More information about the asterisk-code-review
mailing list