[Asterisk-cvs] asterisk indications.c,1.7.2.1,1.7.2.2

markster at lists.digium.com markster at lists.digium.com
Tue Feb 10 23:05:58 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv18288

Modified Files:
      Tag: v1-0_stable
	indications.c 
Log Message:
Don't free if it's NULL


Index: indications.c
===================================================================
RCS file: /usr/cvsroot/asterisk/indications.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -d -r1.7.2.1 -r1.7.2.2
--- indications.c	11 Feb 2004 03:54:20 -0000	1.7.2.1
+++ indications.c	11 Feb 2004 05:14:44 -0000	1.7.2.2
@@ -318,7 +318,8 @@
 		struct tone_zone_sound *tmp = zone->tones->next;
 		free((void*)zone->tones->name);
 		free((void*)zone->tones->data);
-		free((void*)zone->ringcadance);
+		if (zone->ringcadance)
+			free((void*)zone->ringcadance);
 		free(zone->tones);
 		zone->tones = tmp;
 	}




More information about the svn-commits mailing list