From 796eb6268c9d09d79377f9a6034f12f378629d6a Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Fri, 9 May 2014 15:08:00 +0930 Subject: [PATCH] Fix list traversal and element freeing --- vomp_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vomp_console.c b/vomp_console.c index 950c2eb8..50b9f406 100644 --- a/vomp_console.c +++ b/vomp_console.c @@ -189,7 +189,7 @@ static int remote_hangup(char *UNUSED(cmd), int UNUSED(argc), char **argv, unsig printf("Call ended\n"); fflush(stdout); struct call *p=*call; - call = &p->_next; + *call = p->_next; free(p); }else{ call = &(*call)->_next;