fix: ocaml.c was reading from freed memory
Brought to you by:
dhiebert
To reproduce, run with valgrind on pretty much any pair of OCaml sources. Note that the bug almost never caused an actual crash, but I got lucky. :P
The function findOcamlTags() called computeModuleName() before initializing the stack, which is used by computeModuleName(). Also, initStack() did not reset stackIndex.
Modification pushed