Fix memory leak of lastArray when newArray == NULL

lastArray remains copied/pinned when android_os_Process_getPids returns
early because of a failure to allocate newArray.

Bug: 351917521
Test: cuttlefish boot
Change-Id: I95ebeb36ffc185a21acca11b9393b6dd8f4e0f83
1 file changed