We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e8add7 + dec7b1e commit 2aac811Copy full SHA for 2aac811
1 file changed
libs/binder/ProcessState.cpp
@@ -492,6 +492,7 @@ bool ProcessState::isDriverFeatureEnabled(const DriverFeature feature) {
492
if (read(fd, &on, sizeof(on)) == -1) {
493
ALOGE("%s: error reading to %s: %s", __func__,
494
names[static_cast<int>(feature)], strerror(errno));
495
+ close(fd);
496
return false;
497
}
498
close(fd);
0 commit comments