mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-08 19:44:17 +00:00
Fix list traversal and element freeing
This commit is contained in:
parent
bb39bb871a
commit
796eb6268c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user