-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
In compile_rust_to_llvm_ir() in compiler.jl, IOBuffer objects are not properly closed in error paths, leading to resource leaks.
Location
src/compiler.jl(compile_rust_to_llvm_ir function)
Problem
When compilation errors occur, IOBuffers used for capturing stderr/stdout are not explicitly closed before the error is thrown. While Julia's GC will eventually clean these up, repeated compilation failures could accumulate unclosed IOBuffer resources.
Suggested Fix
Use try-finally to ensure IOBuffers are closed:
buf = IOBuffer()
try
# ... compilation logic
finally
close(buf)
endSeverity
LOW - Resource leak in error paths
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working