diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-04-29 16:16:51 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-05 18:38:52 -0400 |
commit | f9d4c78ddcd99efeeb4e4e44b7bd0b6e34889db3 (patch) | |
tree | ba74eb6c3bdb2d172e58f16c0bffff200ecb25c5 /src/misc2.c | |
parent | c5cac800e7b63d175f7da9462804d7f250f1e23a (diff) | |
download | rneovim-f9d4c78ddcd99efeeb4e4e44b7bd0b6e34889db3.tar.gz rneovim-f9d4c78ddcd99efeeb4e4e44b7bd0b6e34889db3.tar.bz2 rneovim-f9d4c78ddcd99efeeb4e4e44b7bd0b6e34889db3.zip |
replaced `vim_free()` calls with `free()` calls
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc2.c b/src/misc2.c index e50f09857c..e25918a2f5 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -781,10 +781,10 @@ int call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg) : STRCMP(p_sxq, "\"(") == 0 ? (char_u *)")\"" : p_sxq); retval = os_call_shell(ncmd, opts, extra_shell_arg); - vim_free(ncmd); + free(ncmd); if (ecmd != cmd) - vim_free(ecmd); + free(ecmd); } /* * Check the window size, in case it changed while executing the @@ -868,7 +868,7 @@ int vim_chdir(char_u *new_dir) if (dir_name == NULL) return -1; r = os_chdir((char *)dir_name); - vim_free(dir_name); + free(dir_name); return r; } @@ -976,7 +976,7 @@ char_u *read_string(FILE *fd, int cnt) for (i = 0; i < cnt; ++i) { c = getc(fd); if (c == EOF) { - vim_free(str); + free(str); return NULL; } str[i] = c; |