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

Commit 1262059c authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

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

* commit '260cb53f':
  zygote: fix memory leak when fork process
parents 5bc17ad2 260cb53f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -358,8 +358,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);
  }