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

Commit 17dd2a3a authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "Bitmap.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: f084e956 am: 97261fc3

am: aacc94e7

Change-Id: I1c34fb077ecc34f1b7a4b0f84abe6a04d76109bb
parents f0110a89 aacc94e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -717,7 +717,7 @@ static jobject Bitmap_createFromParcel(JNIEnv* env, jobject, jobject parcel) {
#endif
        // Dup the file descriptor so we can keep a reference to it after the Parcel
        // is disposed.
        int dupFd = dup(blob.fd());
        int dupFd = fcntl(blob.fd(), F_DUPFD_CLOEXEC, 0);
        if (dupFd < 0) {
            ALOGE("Error allocating dup fd. Error:%d", errno);
            blob.release();