From 0a175b178a9ed2abd22b116a5d9480af77b3c9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Fri, 2 May 2008 15:56:00 +0000 Subject: [PATCH] Fix two bugs (memory leak, list havoc) when destroying a transport --- transports.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transports.c b/transports.c index cddbd61f..70ab1817 100644 --- a/transports.c +++ b/transports.c @@ -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); }