From c4d021d68062a311fb1d04903ebae870aca7f8a1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Aug 2010 18:41:43 +0200 Subject: [PATCH] Cancel pending timeouts before freeing hosts --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 48c594e..81cc84d 100644 --- a/main.c +++ b/main.c @@ -88,6 +88,7 @@ static void del_host(struct relayd_host *host) if (host->rif->managed) relayd_del_route(host); + uloop_timeout_cancel(&host->timeout); list_del(&host->list); free(host); } -- 2.30.2