-
Notifications
You must be signed in to change notification settings - Fork 172
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 Lwt_unix.files_of_directory
#229
Comments
Actually @talex5 has an even shorter repro-case: open Lwt
let rec loop () =
Lwt_unix.opendir "/" >>= fun handle ->
Lwt_unix.readdir_n handle 1024 >>= fun entries ->
Lwt_unix.closedir handle >>= fun () ->
ignore entries;
loop ()
let () =
Lwt_main.run (loop ()) |
I guess it's missing a call to Line 1498 in ebd0a99
|
Closed
samoht
added a commit
to samoht/ocaml-git
that referenced
this issue
Apr 4, 2016
avsm
pushed a commit
to avsm/ocaml-git
that referenced
this issue
Nov 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following simple program shows how to reproduce:
To compile:
Then look at how fast the memory consumption grow.
The text was updated successfully, but these errors were encountered: