diff --git a/bin/named/dlz_dlopen_driver.c b/bin/named/dlz_dlopen_driver.c index 5e6755512f..7df54351da 100644 --- a/bin/named/dlz_dlopen_driver.c +++ b/bin/named/dlz_dlopen_driver.c @@ -223,6 +223,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[], } isc_mem_create(&mctx); + isc_mem_setname(mctx, "named_dlz"); cd = isc_mem_get(mctx, sizeof(*cd)); *cd = (dlopen_data_t){ .mctx = mctx, diff --git a/bin/named/main.c b/bin/named/main.c index ed414f9694..5b456b2290 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -641,6 +641,7 @@ printversion(bool verbose) { printf("threads support is enabled\n"); isc_mem_create(&mctx); + isc_mem_setname(mctx, "main"); result = dst_lib_init(mctx, named_g_engine); if (result == ISC_R_SUCCESS) { isc_buffer_init(&b, buf, sizeof(buf)); diff --git a/lib/isc/managers.c b/lib/isc/managers.c index 5471122300..6950825dd9 100644 --- a/lib/isc/managers.c +++ b/lib/isc/managers.c @@ -22,6 +22,7 @@ isc_managers_create(isc_mem_t **mctxp, uint32_t workers, REQUIRE(mctxp != NULL && *mctxp == NULL); isc_mem_create(mctxp); INSIST(*mctxp != NULL); + isc_mem_setname(*mctxp, "managers"); REQUIRE(loopmgrp != NULL && *loopmgrp == NULL); isc_loopmgr_create(*mctxp, workers, loopmgrp);