Fix two bugs (memory leak, list havoc) when destroying a transport

This commit is contained in:
Andreas Öman 2008-05-02 15:56:00 +00:00
parent d07b22f35c
commit 0a175b178a

View file

@ -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);
}