ygrek / ocurl

OCaml bindings to libcurl
https://ygrek.org/p/ocurl
MIT License
60 stars 32 forks source link

Fix: a memory leak inside C stub (unresolved caml_stat_alloc) #12

Closed murmour closed 8 years ago

murmour commented 8 years ago

Caught this with a static analysis tool while doing a large-scale study of C stub sources on OPAM (as part of this initiative). Haven't tested the fix, except for checking that it compiles without warnings or errors. Please, take a careful look at it.

ygrek commented 8 years ago

Good catch, thank you! Committed as 2d44bad