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

Memory leak in Sys.readdir #4093

Closed
vicuna opened this issue Aug 30, 2006 · 1 comment
Closed

Memory leak in Sys.readdir #4093

vicuna opened this issue Aug 30, 2006 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 30, 2006

Original bug ID: 4093
Reporter: gerd
Status: closed (set by @damiendoligez on 2006-08-30T09:42:57Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)

Bug description

The following loop quickly consumes all available memory:

while true do try ignore(Sys.readdir "/nonexisting") with _ -> () done

Additional information

Obviously, caml_sys_read_directory does not free the ext_table when an error happens.

@vicuna
Copy link
Author

vicuna commented Aug 30, 2006

Comment author: @damiendoligez

fixed in 3.09 branch

@vicuna vicuna closed this as completed Aug 30, 2006
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant