vim-patch:8.2.0544: memory leak in search test

Problem:    Memory leak in search test.
Solution:   Free msgbuf. (Dominique Pelle, closes vim/vim#5912)
880e4d9117
This commit is contained in:
Jan Edmund Lazo
2020-04-11 19:27:57 -04:00
parent 5726272559
commit bdf629775b

View File

@@ -1192,6 +1192,7 @@ int do_search(
len = STRLEN(p) + off_len + 3;
}
xfree(msgbuf);
msgbuf = xmalloc(len);
{
memset(msgbuf, ' ', len);