summaryrefslogtreecommitdiffstats
path: root/src/filepath.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-04-16 22:44:31 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-16 22:44:31 +0200
commit29269a71b5ac8a87c6c4beca35c173a19a2c9398 (patch)
tree64da5504c5544f9d9e0ead921246bc0ad7caef0c /src/filepath.c
parentf7d31adcc22eae852d6e7a5b59e9755ba7b51d35 (diff)
patch 9.1.0341: Problem: a few memory leaks are foundv9.1.0341
Problem: a few memory leaks are found (LuMingYinDetect ) Solution: properly free the memory Fixes the following problems: - Memory leak in f_maplist() fixes: #14486 - Memory leak in option.c fixes: #14485 - Memory leak in f_resolve() fixes: #14484 - Memory leak in f_autocmd_get() related: #14474 - Memory leak in dict_extend_func() fixes: #14477 fixes: #14238 closes: #14517 Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/filepath.c')
-rw-r--r--src/filepath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filepath.c b/src/filepath.c
index cbf2da4136..3bf8a2d269 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -2110,6 +2110,7 @@ f_resolve(typval_T *argvars, typval_T *rettv)
if (buf == NULL)
{
vim_free(p);
+ vim_free(remain);
goto fail;
}