[asterisk-commits] tzafrir: trunk r261451 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 6 02:27:35 CDT 2010


Author: tzafrir
Date: Thu May  6 02:27:31 2010
New Revision: 261451

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=261451
Log:
When failing to configure, don't destroy 'cfg' twice

Fixes a crash when some config section had an incorrect channel config.

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=261451&r1=261450&r2=261451
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu May  6 02:27:31 2010
@@ -17722,7 +17722,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 asterisk-commits mailing list