Skip to content
Snippets Groups Projects
Commit 92f6d077 authored by James Golovich's avatar James Golovich
Browse files

Fix ast_translator_free_path (bug 1254)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 1498cc55
Branches
Tags
No related merge requests found
......@@ -70,10 +70,11 @@ static int powerof(int d)
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment