Commit a59a015a authored by Marko Mäkelä's avatar Marko Mäkelä

Plug memory leaks from numa_get_mems_allowed()

parent 73985d83
...@@ -103,6 +103,7 @@ struct set_numa_interleave_t ...@@ -103,6 +103,7 @@ struct set_numa_interleave_t
" policy to MPOL_INTERLEAVE: " " policy to MPOL_INTERLEAVE: "
<< strerror(errno); << strerror(errno);
} }
numa_bitmask_free(numa_mems_allowed);
} }
} }
...@@ -1600,6 +1601,7 @@ buf_chunk_init( ...@@ -1600,6 +1601,7 @@ buf_chunk_init(
" buffer pool page frames to MPOL_INTERLEAVE" " buffer pool page frames to MPOL_INTERLEAVE"
" (error: " << strerror(errno) << ")."; " (error: " << strerror(errno) << ").";
} }
numa_bitmask_free(numa_mems_allowed);
} }
#endif /* HAVE_LIBNUMA */ #endif /* HAVE_LIBNUMA */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment