[asterisk-commits] russell: trunk r134005 - in /trunk: ./ funcs/func_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jul 27 16:12:14 CDT 2008


Author: russell
Date: Sun Jul 27 16:12:14 2008
New Revision: 134005

URL: http://svn.digium.com/view/asterisk?view=rev&rev=134005
Log:
Add a missing unlock within error handling
(closes issue #13176)
Reported by: pj

Modified:
    trunk/   (props changed)
    trunk/funcs/func_config.c

Propchange: trunk/
            ('branch-1.4-blocked' removed)

Propchange: trunk/
            ('branch-1.4-merged' removed)

Modified: trunk/funcs/func_config.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_config.c?view=diff&rev=134005&r1=134004&r2=134005
==============================================================================
--- trunk/funcs/func_config.c (original)
+++ trunk/funcs/func_config.c Sun Jul 27 16:12:14 2008
@@ -146,6 +146,7 @@
 	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;
 	}
 




More information about the asterisk-commits mailing list