lambda: Minor capture-variable/liberate-variable clean-up after post-merge reviews.

Change-Id: I64f867d4ed5a5efcac138097f38efe4bb7f1281d
diff --git a/runtime/lambda/leaking_allocator.cc b/runtime/lambda/leaking_allocator.cc
index 4910732..22bb294 100644
--- a/runtime/lambda/leaking_allocator.cc
+++ b/runtime/lambda/leaking_allocator.cc
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+#include "base/bit_utils.h"
 #include "lambda/leaking_allocator.h"
 #include "linear_alloc.h"
 #include "runtime.h"
@@ -21,9 +22,11 @@
 namespace art {
 namespace lambda {
 
-void* LeakingAllocator::AllocateMemory(Thread* self, size_t byte_size) {
+void* LeakingAllocator::AllocateMemoryImpl(Thread* self, size_t byte_size, size_t align_size) {
   // TODO: use GetAllocatorForClassLoader to allocate lambda ArtMethod data.
-  return Runtime::Current()->GetLinearAlloc()->Alloc(self, byte_size);
+  void* mem = Runtime::Current()->GetLinearAlloc()->Alloc(self, byte_size);
+  DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(mem), align_size);
+  return mem;
 }
 
 }  // namespace lambda