From: florian Date: Tue, 30 May 2017 14:45:22 +0000 (+0000) Subject: fix previous; actually free the memory X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4bc08e695aa6db24552011e46ad90946721e2c8b;p=openbsd fix previous; actually free the memory --- diff --git a/usr.sbin/slaacd/engine.c b/usr.sbin/slaacd/engine.c index f56d5bdf661..fd4194379c5 100644 --- a/usr.sbin/slaacd/engine.c +++ b/usr.sbin/slaacd/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.30 2017/05/30 14:23:10 florian Exp $ */ +/* $OpenBSD: engine.c,v 1.31 2017/05/30 14:45:22 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -1908,6 +1908,7 @@ address_proposal_timeout(int fd, short events, void *arg) addr_proposal->vltime) == 0) { evtimer_del(&addr_proposal->timer); LIST_REMOVE(addr_proposal, entries); + free(addr_proposal); log_debug("%s: removing address proposal", __func__); break; } @@ -2000,6 +2001,7 @@ dfr_proposal_timeout(int fd, short events, void *arg) dfr_proposal->router_lifetime) == 0) { evtimer_del(&dfr_proposal->timer); LIST_REMOVE(dfr_proposal, entries); + free(dfr_proposal); log_debug("%s: removing dfr proposal", __func__); break; }