projects
/
platform
/
hal
/
api
/
common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6d6fcc
)
halcc: Fix file descriptor leak
74/313374/1
author
Youngjae Cho
<y0.cho@samsung.com>
Tue, 25 Jun 2024 01:34:15 +0000
(10:34 +0900)
committer
Youngjae Cho
<y0.cho@samsung.com>
Tue, 25 Jun 2024 02:35:54 +0000
(11:35 +0900)
Change-Id: I5cc2d7f628686d65513a740d4df15ca92cddca3b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/hal-api-compatibility-checker.c
patch
|
blob
|
history
diff --git
a/src/hal-api-compatibility-checker.c
b/src/hal-api-compatibility-checker.c
index 7f191b6beaa20a1b9a4d21cde8a9d7885406155a..a4d29d4541830ebe34b845b78acc3e2827d0e254 100644
(file)
--- a/
src/hal-api-compatibility-checker.c
+++ b/
src/hal-api-compatibility-checker.c
@@
-358,6
+358,7
@@
static int open_result_file(const char *path, int *fd_out, bool reset)
ret = ftruncate(fd, sizeof(struct compatibility_info) * HAL_MODULE_END);
if (ret < 0) {
_E("Failed to ftruncate %s, %m", path);
+ close(fd);
return -errno;
}