ocamllabs/ocaml-ctypes — pull request #35 by yallop (2013-07-12 17:25:02+00:00)
Title: Optional finalisers for ctypes-allocated memory

Gc.finalise isn't sufficient, since we need to attach the finaliser to the value that holds the raw pointer, which isn't exposed in the public interface.