diff options
author | ZyX <kp-pav@yandex.ru> | 2015-10-17 15:32:11 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-23 14:54:10 +0300 |
commit | 502a20a8feb80e7e12eb34231975257b915e3115 (patch) | |
tree | 0cfbefabbb0631dc2439dba0791a38e510e7faf3 /src/nvim/os/stdpaths.c | |
parent | 0a59c969cc2850940f0791ce2944fa7f4ee3de02 (diff) | |
download | rneovim-502a20a8feb80e7e12eb34231975257b915e3115.tar.gz rneovim-502a20a8feb80e7e12eb34231975257b915e3115.tar.bz2 rneovim-502a20a8feb80e7e12eb34231975257b915e3115.zip |
stdpaths,main: Remove all remaining memory leaks
Diffstat (limited to 'src/nvim/os/stdpaths.c')
-rw-r--r-- | src/nvim/os/stdpaths.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/stdpaths.c b/src/nvim/os/stdpaths.c index 86daa7257a..9d93f25a7e 100644 --- a/src/nvim/os/stdpaths.c +++ b/src/nvim/os/stdpaths.c @@ -59,7 +59,7 @@ static char *get_xdg_home(const XDGVarType idx) { char *dir = stdpaths_get_xdg_var(idx); if (dir) { - dir = concat_fnames(dir, "nvim", true); + dir = concat_fnames_realloc(dir, "nvim", true); } return dir; } @@ -77,13 +77,13 @@ static void create_dir(const char *dir, int mode, const char *suffix) char *stdpaths_user_conf_subpath(const char *fname) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL { - return concat_fnames(get_xdg_home(kXDGConfigHome), fname, true); + return concat_fnames_realloc(get_xdg_home(kXDGConfigHome), fname, true); } char *stdpaths_user_data_subpath(const char *fname) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_NONNULL_ALL { - char *dir = concat_fnames(get_xdg_home(kXDGDataHome), fname, true); + char *dir = concat_fnames_realloc(get_xdg_home(kXDGDataHome), fname, true); if (!os_isdir((char_u *)dir)) { create_dir(dir, 0755, fname); } |