diff options
| author | Alexander Potapenko <glider@google.com> | 2025-08-01 15:55:40 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2025-08-05 13:16:45 +0000 |
| commit | a4acbebb7c7f9bc7ff56c2e6a0e452aa6438fc11 (patch) | |
| tree | 9b2d681559a7ed341551fcad4876db61b58e999c | |
| parent | 77ff614fa0319f7b4e99df29822d0590128bf00c (diff) | |
executor: close the dangling file descriptor in setup_kcov_reset_ioctl()
| -rw-r--r-- | executor/executor_linux.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor_linux.h b/executor/executor_linux.h index a5a073ba0..e13f7bd8d 100644 --- a/executor/executor_linux.h +++ b/executor/executor_linux.h @@ -330,6 +330,8 @@ static const char* setup_kcov_reset_ioctl() int fd = open("/sys/kernel/debug/kcov", O_RDWR); if (fd == -1) return "open of /sys/kernel/debug/kcov failed"; + close(fd); + cover_t cov = {}; cov.fd = kCoverFd; cover_open(&cov, false); |
