Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamldep leaks temporary files in trunk #5930

Closed
vicuna opened this issue Feb 23, 2013 · 1 comment
Closed

ocamldep leaks temporary files in trunk #5930

vicuna opened this issue Feb 23, 2013 · 1 comment
Assignees

Comments

@vicuna
Copy link

@vicuna vicuna commented Feb 23, 2013

Original bug ID: 5930
Reporter: @sliquister
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:18:54Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.00.2+dev
Category: tools (ocaml{lex,yacc,dep,debug,...})

Bug description

Any call to ocamldep with a preprocessor leaks the temporary file /tmp/ocamlppXXXXXX.

commit 12769 removes this line in ocamldep:

  •  close_in ic; remove_preprocessed input_file; raise x
    

and doesn't put the call to remove_preprocessed anywhere.

Steps to reproduce

/tmp$ ocamlc -version
4.01.0+dev10-2012-10-16
/tmp$ echo ocamlpp*
ocamlpp*
/tmp$ touch a.ml
/tmp$ ocamldep -pp cat a.ml
a.cmo :
a.cmx :
/tmp$ echo ocamlpp*
ocamlpp2fccf9
/tmp$

@vicuna
Copy link
Author

@vicuna vicuna commented Feb 24, 2013

Comment author: @gasche

Thanks for the report, I just fixed it.

@vicuna vicuna closed this Dec 11, 2015
@vicuna vicuna added the tools label Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants