am 9ff57d53: Size the leak test allocation base on memory class.

* commit '9ff57d537a5b0ca56c4d60da69673e9a9bc7e639':
  Size the leak test allocation base on memory class.