From: Bram Moolenaar Date: Mon, 1 Jun 2020 19:13:11 +0000 (+0200) Subject: patch 8.2.0883: memory leak in test 49 X-Git-Tag: v8.2.0883 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fbf3bc3f9d007ab91eb005f9e3da6570992cb43;p=thirdparty%2Fvim.git patch 8.2.0883: memory leak in test 49 Problem: Memory leak in test 49. Solution: Free "sfile" from the exception. --- diff --git a/src/ex_docmd.c b/src/ex_docmd.c index ea2763e442..a98dc077d8 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -1278,6 +1278,7 @@ do_cmdline( next = messages->next; emsg(messages->msg); vim_free(messages->msg); + vim_free(messages->sfile); vim_free(messages); messages = next; } diff --git a/src/version.c b/src/version.c index 81485ba127..dff6cf9221 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 883, /**/ 882, /**/