diff options
author | Danylo Piliaiev <[email protected]> | 2019-08-13 11:25:03 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-08-15 08:17:36 +0000 |
commit | 72354d43d405624f09182fe8dfe3bea1a35a9194 (patch) | |
tree | 20bb0a70b9f18514fa3eee89da315ffdb61bbad4 /src/intel | |
parent | 44a6c38bd678f34c6a3c5446bfc422de13f45f8e (diff) |
intel/compiler: Fix resource leak in error path
CID: 1452261
Fixes: 04a99515 "intel/compiler: add ability to override shader's assembly"
Signed-off-by: Danylo Piliaiev <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_eu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu.c b/src/intel/compiler/brw_eu.c index 882293e981b..db08999c7ee 100644 --- a/src/intel/compiler/brw_eu.c +++ b/src/intel/compiler/brw_eu.c @@ -370,6 +370,7 @@ bool brw_try_override_assembly(struct brw_codegen *p, int start_offset, struct stat sb; if (fstat(fd, &sb) != 0 || (!S_ISREG(sb.st_mode))) { + close(fd); return false; } |