We should cleanup memory handling. There's `vim_free`, but I couldn't find the `malloc` equivalent.