diff options
author | Lionel Landwerlin <[email protected]> | 2017-07-13 16:39:42 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-07-13 22:50:50 +0100 |
commit | 6131a1ae40d2f24df71c5c701d7cbd1286114998 (patch) | |
tree | 43838902ff9b33378006b4f7c4c1a89a4698324b | |
parent | d1bd731e3014a9e16d4c24da439831c1cc745ef5 (diff) |
aubinator: don't leak fd of opened aubfile
CID: 1373563
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
-rw-r--r-- | src/intel/tools/aubinator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index 6c9a8f052c2..48d4456cc16 100644 --- a/src/intel/tools/aubinator.c +++ b/src/intel/tools/aubinator.c @@ -904,6 +904,8 @@ aub_file_open(const char *filename) exit(EXIT_FAILURE); } + close(fd); + file->cursor = file->map; file->end = file->map + sb.st_size / 4; |