Commit c2f1b7f6 authored by Aart Bik's avatar Aart Bik Committed by Gerrit Code Review
Browse files

Merge "Fix resource leaks."

parents ef028e72 f23d8797
......@@ -126,6 +126,7 @@ int sysFakeMapFile(int fd, MemMapping* pMap)
if (read(fd, memPtr, length) < 0) {
ALOGW("read(fd=%d, start=%d, length=%d) failed: %s", (int) length,
fd, (int) start, strerror(errno));
free(memPtr);
return -1;
}
......
......@@ -388,6 +388,7 @@ int verifyfile(char *fname)
}
}
} while (s);
fclose(checkfile);
return found;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment