1
0
forked from aniani/vim

updated for version 7.4.297

Problem:    Memory leak from result of get_isolated_shell_name().
Solution:   Free the memory. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2014-05-22 14:00:16 +02:00
parent 1c5a2134db
commit 050fe7ebad
3 changed files with 6 additions and 2 deletions

View File

@@ -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: