From: Bram Moolenaar Date: Sun, 13 Dec 2020 20:16:55 +0000 (+0100) Subject: patch 8.2.2142: memory leak when heredoc is not terminated X-Git-Tag: v8.2.2142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fffdf4754f4fd789c64596bdd9ea069725e63784;p=thirdparty%2Fvim.git patch 8.2.2142: memory leak when heredoc is not terminated Problem: Memory leak when heredoc is not terminated. Solution: Free heredoc_trimmed. --- diff --git a/src/userfunc.c b/src/userfunc.c index ccd1bd382e..2d71a7fd32 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -3705,6 +3705,7 @@ errret_2: ret_free: ga_clear_strings(&argtypes); vim_free(skip_until); + vim_free(heredoc_trimmed); vim_free(line_to_free); vim_free(fudi.fd_newkey); if (name != name_arg) diff --git a/src/version.c b/src/version.c index 3aec81b4b0..be7e4f0887 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2142, /**/ 2141, /**/