summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-05-22 14:00:16 +0200
committerBram Moolenaar <Bram@vim.org>2014-05-22 14:00:16 +0200
commit050fe7ebad159f48704bd3a991632d0330ef0cf2 (patch)
treee2418297970110ece00215f266edbc7b519ca6f8 /src/misc1.c
parent1c5a2134dbf880859281c676b834c5a636f78f52 (diff)
downloadvim-git-050fe7ebad159f48704bd3a991632d0330ef0cf2.tar.gz
updated for version 7.4.297v7.4.297
Problem: Memory leak from result of get_isolated_shell_name(). Solution: Free the memory. (Dominique Pelle)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 88ebd8da3..95d18a571 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -10874,7 +10874,7 @@ goto_im()
}
/*
- * Returns the isolated name of the shell:
+ * Returns the isolated name of the shell in allocated memory:
* - Skip beyond any path. E.g., "/usr/bin/csh -f" -> "csh -f".
* - Remove any argument. E.g., "csh -f" -> "csh".
* But don't allow a space in the path, so that this works: