[Asterisk-cvs] asterisk translate.c,1.18,1.19
citats at lists.digium.com
citats at lists.digium.com
Sat Mar 20 06:00:26 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11367
Modified Files:
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.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- translate.c 19 Mar 2004 20:36:21 -0000 1.18
+++ translate.c 20 Mar 2004 10:55:57 -0000 1.19
@@ -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