From: Bram Moolenaar Date: Sat, 11 Apr 2020 19:31:28 +0000 (+0200) Subject: patch 8.2.0544: memory leak in search test X-Git-Tag: v8.2.0544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=880e4d9117ea990e66d867aefad0f73ba89bda82;p=vim patch 8.2.0544: memory leak in search test Problem: Memory leak in search test. Solution: Free msgbuf. (Dominique Pelle, closes #5912) --- 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) { diff --git a/src/version.c b/src/version.c index ae324b361..945896d2f 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 544, /**/ 543, /**/