[asterisk-commits] oej: branch oej/bufo-manager-setvar r282977 - /team/oej/bufo-manager-setvar/m...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 20 06:50:35 CDT 2010


Author: oej
Date: Fri Aug 20 06:50:31 2010
New Revision: 282977

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=282977
Log:
Make sure we have chanvars before we destroy them

Modified:
    team/oej/bufo-manager-setvar/main/manager.c

Modified: team/oej/bufo-manager-setvar/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/bufo-manager-setvar/main/manager.c?view=diff&rev=282977&r1=282976&r2=282977
==============================================================================
--- team/oej/bufo-manager-setvar/main/manager.c (original)
+++ team/oej/bufo-manager-setvar/main/manager.c Fri Aug 20 06:50:31 2010
@@ -810,7 +810,9 @@
 		close(s->fd);
 	if (s->outputstr)
 		free(s->outputstr);
-	ast_variables_destroy(s->chanvars);
+	if (s->chanvars) {
+		ast_variables_destroy(s->chanvars);
+	}
 	ast_mutex_destroy(&s->__lock);
 	while (s->eventq) {
 		eqe = s->eventq;




More information about the asterisk-commits mailing list