diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-02-14 12:53:28 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-02-14 12:53:28 +0000 |
commit | 5a9714cbf28ce83d7f53864f7c29611c3ba81832 (patch) | |
tree | cd8ab2d446584458da14cd9e55a1e52e8a16dd35 | |
parent | cdb3640c800fb026c9f2f20144358a80b0a54c5a (diff) |
free mbuf in failure case. fix for pr6562. ok claudio.
-rw-r--r-- | sys/net/rtsock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index ee882ac2b24..55f111c7a70 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.113 2011/01/06 14:50:11 claudio Exp $ */ +/* $OpenBSD: rtsock.c,v 1.114 2011/02/14 12:53:27 tedu Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -309,6 +309,8 @@ rt_senddesync(void *data) rop->flags &= ~ROUTECB_FLAG_DESYNC; sorwakeup(rp->rcb_socket); } else { + if (desync_mbuf) + m_freem(desync_mbuf); /* Re-add timeout to try sending msg again */ timeout_add(&rop->timeout, ROUTE_DESYNC_RESEND_TIMEOUT); } |