Skip to content

Commit 82bafbe

Browse files
committed
correctly delete preprocessor output after usage
1 parent ce92495 commit 82bafbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ocaml/driver/pparse.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ let apply_pp ~workdir ~filename ~source ~pp =
180180
let ic = open_in_bin fn_out in
181181
let result = Misc.string_of_file ic in
182182
close_in ic;
183+
Misc.remove_file fn_out;
183184
Ok result
184185

185186
let decode_potential_ast source =

0 commit comments

Comments
 (0)