Log errno when dup fd cannot be allocated BUG: 25165471
am: 211abad3b9
* commit '211abad3b92b70dd094949c79f67e686c940fa0c':
Log errno when dup fd cannot be allocated BUG: 25165471
This commit is contained in:
@@ -1006,6 +1006,7 @@ static jobject Bitmap_createFromParcel(JNIEnv* env, jobject, jobject parcel) {
|
|||||||
// is disposed.
|
// is disposed.
|
||||||
int dupFd = dup(blob.fd());
|
int dupFd = dup(blob.fd());
|
||||||
if (dupFd < 0) {
|
if (dupFd < 0) {
|
||||||
|
ALOGE("Error allocating dup fd. Error:%d", errno);
|
||||||
blob.release();
|
blob.release();
|
||||||
SkSafeUnref(ctable);
|
SkSafeUnref(ctable);
|
||||||
doThrowRE(env, "Could not allocate dup blob fd.");
|
doThrowRE(env, "Could not allocate dup blob fd.");
|
||||||
|
|||||||
Reference in New Issue
Block a user