Skip to content

Commit

Permalink
correctly delete preprocessor output after usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jboillot committed Jul 17, 2024
1 parent ce92495 commit 82bafbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ocaml/driver/pparse.ml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ let apply_pp ~workdir ~filename ~source ~pp =
let ic = open_in_bin fn_out in
let result = Misc.string_of_file ic in
close_in ic;
Misc.remove_file fn_out;
Ok result

let decode_potential_ast source =
Expand Down

0 comments on commit 82bafbe

Please sign in to comment.