Skip to content

Commit 2aac811

Browse files
Steven MorelandGerrit Code Review
authored andcommitted
Merge "binder: fix coverity warnings" into main
2 parents 0e8add7 + dec7b1e commit 2aac811

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libs/binder/ProcessState.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ bool ProcessState::isDriverFeatureEnabled(const DriverFeature feature) {
492492
if (read(fd, &on, sizeof(on)) == -1) {
493493
ALOGE("%s: error reading to %s: %s", __func__,
494494
names[static_cast<int>(feature)], strerror(errno));
495+
close(fd);
495496
return false;
496497
}
497498
close(fd);

0 commit comments

Comments
 (0)