replaced `vim_free()` calls with `free()` calls
removed `vim_free()` function