Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 260cb53f authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am ce4fbb4d: Merge "zygote: fix memory leak when fork process"

* commit 'ce4fbb4d':
  zygote: fix memory leak when fork process
parents 2e3746ab ce4fbb4d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
  }