diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-11 21:31:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-11 21:31:28 +0200 |
commit | 880e4d9117ea990e66d867aefad0f73ba89bda82 (patch) | |
tree | 750263659b434f5d4ad8dc0683c00ed5faa65fe3 /src/search.c | |
parent | 1378fbc4591b77186c90beda37bdac628add4cb6 (diff) | |
download | vim-git-880e4d9117ea990e66d867aefad0f73ba89bda82.tar.gz |
patch 8.2.0544: memory leak in search testv8.2.0544
Problem: Memory leak in search test.
Solution: Free msgbuf. (Dominique Pelle, closes #5912)
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index 95a27f867..e3265c25c 100644 --- a/src/search.c +++ b/src/search.c @@ -1416,6 +1416,7 @@ do_search( // Reserve enough space for the search pattern + offset. len = STRLEN(p) + off_len + 3; + vim_free(msgbuf); msgbuf = alloc(len); if (msgbuf != NULL) { |