Mercurial > vim
comparison src/ex_eval.c @ 8418:89f38c77e11e v7.4.1500
commit https://github.com/vim/vim/commit/9ef00be261115acb5bae3b3ca45c1d86a19ba2c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 6 14:58:28 2016 +0100
patch 7.4.1500
Problem: Should_free flag set to FALSE.
Solution: Set it to TRUE. (Neovim 4415)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Mar 2016 15:00:05 +0100 |
parents | 00344cd730f6 |
children | 4aead6a9b7a9 |
comparison
equal
deleted
inserted
replaced
8417:c7d9934d09e3 | 8418:89f38c77e11e |
---|---|
430 int cmdlen; | 430 int cmdlen; |
431 char_u *p, *val; | 431 char_u *p, *val; |
432 | 432 |
433 if (type == ET_ERROR) | 433 if (type == ET_ERROR) |
434 { | 434 { |
435 *should_free = FALSE; | 435 *should_free = TRUE; |
436 mesg = ((struct msglist *)value)->throw_msg; | 436 mesg = ((struct msglist *)value)->throw_msg; |
437 if (cmdname != NULL && *cmdname != NUL) | 437 if (cmdname != NULL && *cmdname != NUL) |
438 { | 438 { |
439 cmdlen = (int)STRLEN(cmdname); | 439 cmdlen = (int)STRLEN(cmdname); |
440 ret = vim_strnsave((char_u *)"Vim(", | 440 ret = vim_strnsave((char_u *)"Vim(", |
487 } | 487 } |
488 } | 488 } |
489 else | 489 else |
490 { | 490 { |
491 *should_free = FALSE; | 491 *should_free = FALSE; |
492 ret = (char_u *) value; | 492 ret = (char_u *)value; |
493 } | 493 } |
494 | 494 |
495 return ret; | 495 return ret; |
496 } | 496 } |
497 | 497 |