Skip to content

Commit

Permalink
Plug memory leaks from numa_get_mems_allowed()
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Dec 23, 2019
1 parent 73985d8 commit a59a015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage/innobase/buf/buf0buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ struct set_numa_interleave_t
" policy to MPOL_INTERLEAVE: "
<< strerror(errno);
}
numa_bitmask_free(numa_mems_allowed);
}
}

Expand Down Expand Up @@ -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 */

Expand Down

0 comments on commit a59a015

Please sign in to comment.