Date: Thu, 16 Dec 2021 23:15:22 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d8b45c8e14c5 - main - inpcb: don't leak the port zone in in_pcbinfo_destroy() Message-ID: <202112162315.1BGNFMQf082588@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112162315.1BGNFMQf082588>