summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-09-18 15:24:33 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-09-18 15:24:33 +0000
commitc7bf7febe7db9ce8a463306f405dc972b6318b40 (patch)
tree360b419bf1a0cca5bb9a0d37282a9cd259c3d4bd /sys
parent079286ffb014f102173a56f27e66b9330f28afd3 (diff)
Avoid memory leak when disabling PMTU, rt_timer_queue_destroy() expects the
caller to free the structure.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index be045237ecf..e40d819c80f 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.92 2001/07/17 20:34:50 provos Exp $ */
+/* $OpenBSD: ip_input.c,v 1.93 2001/09/18 15:24:32 aaron Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1590,6 +1590,7 @@ ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen)
rt_timer_queue_create(ip_mtudisc_timeout);
} else if (ip_mtudisc == 0 && ip_mtudisc_timeout_q != NULL) {
rt_timer_queue_destroy(ip_mtudisc_timeout_q, TRUE);
+ Free(ip_mtudisc_timeout_q);
ip_mtudisc_timeout_q = NULL;
}
return error;