[Asterisk-cvs] asterisk indications.c,1.8,1.9

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


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

Modified Files:
	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.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- indications.c	11 Feb 2004 03:54:28 -0000	1.8
+++ indications.c	11 Feb 2004 05:14:19 -0000	1.9
@@ -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