summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-12-23 07:47:16 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-12-23 07:47:16 +0200
commita59a015a75146ef486137de96e7a29a7eaf96a01 (patch)
tree5258e474facb389de3a283fc9e263350de6e029b
parent73985d83014e2a484dffac135193a2f0cf715b54 (diff)
downloadmariadb-git-a59a015a75146ef486137de96e7a29a7eaf96a01.tar.gz
Plug memory leaks from numa_get_mems_allowed()
-rw-r--r--storage/innobase/buf/buf0buf.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc
index da39e24f543..0c0f82d48b9 100644
--- a/storage/innobase/buf/buf0buf.cc
+++ b/storage/innobase/buf/buf0buf.cc
@@ -103,6 +103,7 @@ struct set_numa_interleave_t
" policy to MPOL_INTERLEAVE: "
<< strerror(errno);
}
+ numa_bitmask_free(numa_mems_allowed);
}
}
@@ -1600,6 +1601,7 @@ buf_chunk_init(
" buffer pool page frames to MPOL_INTERLEAVE"
" (error: " << strerror(errno) << ").";
}
+ numa_bitmask_free(numa_mems_allowed);
}
#endif /* HAVE_LIBNUMA */