[Asterisk-cvs] asterisk translate.c,1.13.2.2,1.13.2.3

citats at lists.digium.com citats at lists.digium.com
Sat Mar 20 06:00:38 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	translate.c 
Log Message:
Fix ast_translator_free_path (bug 1254)



Index: translate.c
===================================================================
RCS file: /usr/cvsroot/asterisk/translate.c,v
retrieving revision 1.13.2.2
retrieving revision 1.13.2.3
diff -u -d -r1.13.2.2 -r1.13.2.3
--- translate.c	1 Mar 2004 07:17:34 -0000	1.13.2.2
+++ translate.c	20 Mar 2004 10:56:09 -0000	1.13.2.3
@@ -70,10 +70,11 @@
 
 void ast_translator_free_path(struct ast_trans_pvt *p)
 {
-	struct ast_trans_pvt *pl;
-	while(p) {
-		pl = p;
-		p = p->next;
+	struct ast_trans_pvt *pl, *pn;
+	pn = p;
+	while(pn) {
+		pl = pn;
+		pn = pn->next;
 		if (pl->state && pl->step->destroy)
 			pl->step->destroy(pl->state);
 		free(pl);




More information about the svn-commits mailing list