Merge pull request #4415 from oni-link/fix.leak

ex_eval: Fix memory leak
This commit is contained in:
Justin M. Keyes 2016-03-05 15:05:44 -05:00
commit 1895f6ffab

View File

@ -378,7 +378,7 @@ char_u *get_exception_string(void *value, int type, char_u *cmdname, int *should
char_u *p, *val;
if (type == ET_ERROR) {
*should_free = FALSE;
*should_free = true;
mesg = ((struct msglist *)value)->throw_msg;
if (cmdname != NULL && *cmdname != NUL) {
size_t cmdlen = STRLEN(cmdname);