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

Commit ce4fbb4d authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "zygote: fix memory leak when fork process"

parents 9bcb0fcc 1ca062f2
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);
  }