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

Commit f084e956 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Bitmap.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)"

parents 3c0efa4e 07f1c1db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1095,7 +1095,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();