mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
Fix memory leak in eval7
This commit is contained in:
parent
2f1a2eb0f2
commit
80cb604cc8
@ -4515,7 +4515,7 @@ eval7 (
|
|||||||
* get_func_tv, but it's needed in handle_subscript() to parse
|
* get_func_tv, but it's needed in handle_subscript() to parse
|
||||||
* what follows. So set it here. */
|
* what follows. So set it here. */
|
||||||
if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(') {
|
if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(') {
|
||||||
rettv->vval.v_string = vim_strsave((char_u *)"");
|
rettv->vval.v_string = (char_u *)"";
|
||||||
rettv->v_type = VAR_FUNC;
|
rettv->v_type = VAR_FUNC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,8 +27,12 @@ SCRIPTS := test1.out test2.out test3.out test4.out test5.out test6.out \
|
|||||||
|
|
||||||
SCRIPTS_GUI := test16.out
|
SCRIPTS_GUI := test16.out
|
||||||
|
|
||||||
|
ifdef VALGRIND_GDB
|
||||||
|
VGDB := --vgdb=yes --vgdb-error=0
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef VALGRIND_CHECK
|
ifdef VALGRIND_CHECK
|
||||||
VALGRIND = valgrind --suppressions=../../.valgrind.supp --leak-check=full --error-exitcode=123 --log-file=valgrind.$*
|
VALGRIND = valgrind --suppressions=../../.valgrind.supp --leak-check=full --error-exitcode=123 --log-file=valgrind.$* $(VGDB)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef TESTNUM
|
ifdef TESTNUM
|
||||||
|
Loading…
Reference in New Issue
Block a user