summaryrefslogtreecommitdiff
path: root/pflocal/sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'pflocal/sock.c')
-rw-r--r--pflocal/sock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pflocal/sock.c b/pflocal/sock.c
index dffd6bf7..f37a2350 100644
--- a/pflocal/sock.c
+++ b/pflocal/sock.c
@@ -136,6 +136,10 @@ sock_free (struct sock *sock)
sock_shutdown (sock, SOCK_SHUTDOWN_READ | SOCK_SHUTDOWN_WRITE);
if (sock->id != MACH_PORT_NULL)
mach_port_destroy (mach_task_self (), sock->id);
+ if (sock->listen_queue)
+ connq_destroy (sock->listen_queue);
+ if (sock->connect_queue)
+ connq_destroy (sock->connect_queue);
free (sock);
}