mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 06:29:59 -04:00
[9.18] fix: dev: Set name for all the isc_mem contexts
Backport of MR !10425 Merge branch 'backport-ondrej/fix-isc_mem_setname-usage-9.18' into 'bind-9.18' See merge request isc-projects/bind9!10499
This commit is contained in:
commit
6c216c18d0
2 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ dlopen_dlz_create(const char *dlzname, unsigned int argc, char *argv[],
|
|||
}
|
||||
|
||||
isc_mem_create(&mctx);
|
||||
isc_mem_setname(mctx, "dlz");
|
||||
cd = isc_mem_get(mctx, sizeof(*cd));
|
||||
memset(cd, 0, sizeof(*cd));
|
||||
|
||||
|
|
|
|||
|
|
@ -645,6 +645,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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue