[Asterisk-code-review] func odbc: Add missing unlock's to acf odbc read. (asterisk[15])

Jenkins2 asteriskteam at digium.com
Thu Jan 4 13:56:27 CST 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/7794 )

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(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index ed8987e..0f6b65e 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -791,6 +791,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;
 		}
@@ -807,6 +808,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/7794
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I828329ecbd252ae8f27a369a046d2b03102b07c6
Gerrit-Change-Number: 7794
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180104/5662de16/attachment-0001.html>


More information about the asterisk-code-review mailing list