# HG changeset patch # User Bram Moolenaar # Date 1586634303 -7200 # Node ID 545bdbc36f29c03aeae14798cd8b62e1d1ed46ba # Parent d1a5d1f0137addcf0af0f4a84d842c631ebd3149 patch 8.2.0544: memory leak in search test Commit: https://github.com/vim/vim/commit/880e4d9117ea990e66d867aefad0f73ba89bda82 Author: Bram Moolenaar Date: Sat Apr 11 21:31:28 2020 +0200 patch 8.2.0544: memory leak in search test Problem: Memory leak in search test. Solution: Free msgbuf. (Dominique Pelle, closes https://github.com/vim/vim/issues/5912) diff --git a/src/search.c b/src/search.c --- 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) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 544, +/**/ 543, /**/ 542,