Module: Mesa Branch: master Commit: 6131a1ae40d2f24df71c5c701d7cbd1286114998 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6131a1ae40d2f24df71c5c701d7cbd1286114998
Author: Lionel Landwerlin <[email protected]> Date: Thu Jul 13 16:39:42 2017 +0100 aubinator: don't leak fd of opened aubfile CID: 1373563 Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> --- src/intel/tools/aubinator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index 6c9a8f052c..48d4456cc1 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
