git: d8b45c8e14c5 - main - inpcb: don't leak the port zone in in_pcbinfo_destroy()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Dec 2021 23:15:22 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=d8b45c8e14c53941e0bc43d20cfcbfad7691cd8f
commit d8b45c8e14c53941e0bc43d20cfcbfad7691cd8f
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2021-12-16 23:15:02 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2021-12-16 23:15:02 +0000
inpcb: don't leak the port zone in in_pcbinfo_destroy()
---
sys/netinet/in_pcb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 4dc3c737b914..d9d36c1d64c4 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -559,6 +559,7 @@ in_pcbinfo_destroy(struct inpcbinfo *pcbinfo)
hashdestroy(pcbinfo->ipi_lbgrouphashbase, M_PCB,
pcbinfo->ipi_lbgrouphashmask);
uma_zdestroy(pcbinfo->ipi_zone);
+ uma_zdestroy(pcbinfo->ipi_portzone);
mtx_destroy(&pcbinfo->ipi_hash_lock);
mtx_destroy(&pcbinfo->ipi_lock);
}