[asterisk-commits] tzafrir: branch group/zapata_conf r84117 - /team/group/zapata_conf/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 28 21:27:34 CDT 2007


Author: tzafrir
Date: Fri Sep 28 21:27:34 2007
New Revision: 84117

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84117
Log:
Release ucfg properly if there was a zapata.conf error.

Modified:
    team/group/zapata_conf/channels/chan_zap.c

Modified: team/group/zapata_conf/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/group/zapata_conf/channels/chan_zap.c?view=diff&rev=84117&r1=84116&r2=84117
==============================================================================
--- team/group/zapata_conf/channels/chan_zap.c (original)
+++ team/group/zapata_conf/channels/chan_zap.c Fri Sep 28 21:27:34 2007
@@ -12905,8 +12905,12 @@
 	v = ast_variable_browse(cfg, "channels");
 	res = process_zap(&base_conf, v, reload, 0);
 	ast_config_destroy(cfg);
-	if (res)
+	if (res) {
+		if (ucfg)
+			ast_config_destroy(ucfg);
+		ast_mutex_unlock(&iflock);
 		return res;
+	}
 	if (ucfg) {
 		char *cat;
 		const char *chans;




More information about the asterisk-commits mailing list