[Mlir-commits] [mlir] [mlir][ROCDL] Fix file leak in SeralizeToHsaco and its newer form (PR #67711)

Krzysztof Drewniak llvmlistbot at llvm.org
Fri Sep 29 08:33:27 PDT 2023


================
@@ -410,6 +410,8 @@ SerializeToHsacoPass::createHsaco(const SmallVectorImpl<char> &isaBinary) {
     return {};
   }
   llvm::FileRemover cleanupHsaco(tempHsacoFilename);
+  // Prevent file descriptor leak.
+  llvm::sys::fs::closeFile(tempHsacoFD);
----------------
krzysz00 wrote:

I didn't know that

https://github.com/llvm/llvm-project/pull/67711


More information about the Mlir-commits mailing list