Skip to content

Commit

Permalink
patch 9.0.0556: leaking memory with nested functions
Browse files Browse the repository at this point in the history
Problem:    Leaking memory with nested functions.
Solution:   Free saved pointer.
  • Loading branch information
brammool committed Sep 23, 2022
1 parent 20e5856 commit 86fb3f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/eval.c
Expand Up @@ -400,6 +400,7 @@ clear_evalarg(evalarg_T *evalarg, exarg_T *eap)
// need to keep it around.
--etga->ga_len;
*eap->cmdlinep = ((char_u **)etga->ga_data)[etga->ga_len];
vim_free(evalarg->eval_tofree);
}
else
*eap->cmdlinep = evalarg->eval_tofree;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -699,6 +699,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
556,
/**/
555,
/**/
Expand Down

0 comments on commit 86fb3f8

Please sign in to comment.