diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2021-12-15 15:58:37 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2021-12-15 16:00:32 +0000 |
commit | 925b730fbf94cffa1215f3a30bee4c27f0ae36c7 (patch) | |
tree | bd7547beeb44a79846753f0289491ae297ab502f | |
parent | 60c087659a6accc770923d2b52a8f495838b2b22 (diff) |
dns/bind916: fix runnaway memory leak
-rw-r--r-- | dns/bind916/Makefile | 2 | ||||
-rw-r--r-- | dns/bind916/files/patch-mr-5626 | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/dns/bind916/Makefile b/dns/bind916/Makefile index e3c09b5b9b4e..0c1dcee790c2 100644 --- a/dns/bind916/Makefile +++ b/dns/bind916/Makefile @@ -7,7 +7,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/} PORTREVISION= 0 .else # dns/bind916 here -PORTREVISION= 0 +PORTREVISION= 1 .endif CATEGORIES= dns net MASTER_SITES= ISC/bind9/${ISCVERSION} diff --git a/dns/bind916/files/patch-mr-5626 b/dns/bind916/files/patch-mr-5626 new file mode 100644 index 000000000000..6cb9becc16e0 --- /dev/null +++ b/dns/bind916/files/patch-mr-5626 @@ -0,0 +1,21 @@ +--- lib/isc/netmgr/netmgr.c.orig 2021-12-07 12:24:49 UTC ++++ lib/isc/netmgr/netmgr.c +@@ -425,6 +425,7 @@ nm_destroy(isc_nm_t **mgr0) { + isc_mempool_put(mgr->evpool, ievent); + } + isc_condition_destroy(&worker->cond_prio); ++ isc_mutex_destroy(&worker->lock); + + r = uv_loop_close(&worker->loop); + INSIST(r == 0); +@@ -1267,8 +1268,9 @@ nmsocket_cleanup(isc_nmsocket_t *sock, bool dofree FLA + + isc_mem_free(sock->mgr->mctx, sock->ah_frees); + isc_mem_free(sock->mgr->mctx, sock->ah_handles); +- isc_mutex_destroy(&sock->lock); + isc_condition_destroy(&sock->scond); ++ isc_condition_destroy(&sock->cond); ++ isc_mutex_destroy(&sock->lock); + #ifdef NETMGR_TRACE + LOCK(&sock->mgr->lock); + ISC_LIST_UNLINK(sock->mgr->active_sockets, sock, active_link); |