aubinator: don't leak fd of opened aubfile
CID: 1373563 Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user