[Haskell-cafe] How to automatically free memory allocated by malloc? and how to reliably realloc such buffer?