Skip to content

Commit 525d1d6

Browse files
huanghuihui0904chrisbra
authored andcommitted
patch 9.2.0079: memory leak in eval_dict()
Problem: memory leak in eval_dict() Solution: Do not return but goto failret (Huihui Huang). closes: #19531 Signed-off-by: Huihui Huang <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 4e5b9e3 commit 525d1d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/dict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
994994
{
995995
emsg(_(e_missing_matching_bracket_after_dict_key));
996996
clear_tv(&tvkey);
997-
return FAIL;
997+
goto failret;
998998
}
999999
++*arg;
10001000
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
79,
737739
/**/
738740
78,
739741
/**/

0 commit comments

Comments
 (0)