Skip to content

Commit dec7b1e

Browse files
author
wangmingming1
committed
binder: fix coverity warnings
Bug: None Test: build Change-Id: I7d56bb75c8fe6bb3206855c06959f81335971c4b Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
1 parent 0e8add7 commit dec7b1e

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)