hcarty/ocaml-gdal — pull request #3 by fdopen (2014-10-09 13:42:52+00:00)
Title: memory corruption

It's not a pull request. I've just saw your request today.

General advice:
Use Gc.compact, not just Gc.full_major. And put it in a often called
function of your library code, not only at application level. I always
overlay any suspicious function with a wrapper of this scheme:

```ocaml
let f .. =
Gc.compact ();
let x = f .. in
Gc.compact ();
x
```
And then run your application with valgrind. Valgrind did find this error instantly.