Fix two bugs (memory leak, list havoc) when destroying a transport
This commit is contained in:
parent
d07b22f35c
commit
0a175b178a
1 changed files with 2 additions and 0 deletions
|
@ -439,6 +439,7 @@ transport_destroy(th_transport_t *t)
|
|||
}
|
||||
|
||||
LIST_REMOVE(t, tht_mux_link);
|
||||
LIST_REMOVE(t, tht_hash_link);
|
||||
|
||||
transport_flush_subscribers(t);
|
||||
|
||||
|
@ -451,6 +452,7 @@ transport_destroy(th_transport_t *t)
|
|||
LIST_REMOVE(st, st_link);
|
||||
free(st);
|
||||
}
|
||||
free(t);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue