am ce4fbb4d: Merge "zygote: fix memory leak when fork process"
* commit 'ce4fbb4da675c447ec839deaad05c0e88701bc2c': zygote: fix memory leak when fork process
This commit is contained in:
@@ -356,8 +356,8 @@ static void DetachDescriptors(JNIEnv* env, jintArray fdsToClose) {
|
||||
return;
|
||||
}
|
||||
jsize count = env->GetArrayLength(fdsToClose);
|
||||
jint *ar = env->GetIntArrayElements(fdsToClose, 0);
|
||||
if (!ar) {
|
||||
ScopedIntArrayRO ar(env, fdsToClose);
|
||||
if (ar.get() == NULL) {
|
||||
ALOGE("Bad fd array");
|
||||
RuntimeAbort(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user