[svn-commits] mmichelson: trunk r109802 - /trunk/channels/chan_zap.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 18 18:32:59 CDT 2008


Author: mmichelson
Date: Tue Mar 18 18:32:58 2008
New Revision: 109802

URL: http://svn.digium.com/view/asterisk?view=rev&rev=109802
Log:
Fix a typo which caused a double free in chan_zap. This was discovered
by Juggie while attempting to load chan_zap. Apparently this would happen
if an error were encountered while trying to process zapata.conf.


Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=109802&r1=109801&r2=109802
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Tue Mar 18 18:32:58 2008
@@ -14105,7 +14105,7 @@
 		ast_mutex_unlock(&iflock);
 		ast_config_destroy(cfg);
 		if (ucfg) {
-			ast_config_destroy(cfg);
+			ast_config_destroy(ucfg);
 		}
 		return res;
 	}




More information about the svn-commits mailing list