fix allocate memory return incorrect result.

bug: b/246909451
Change-Id: Icc0d805462e2594ca687214c9d995611a07d0829
1 file changed