From: Felix Fietkau Date: Wed, 11 Aug 2010 16:41:43 +0000 (+0200) Subject: Cancel pending timeouts before freeing hosts X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c4d021d68062a311fb1d04903ebae870aca7f8a1;p=project%2Frelayd.git Cancel pending timeouts before freeing hosts --- 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); }