Patch 8.2.4990 (after 8.2.4989)
Problem:    Memory leak when :defcompile fails.
Solution:   Free fname when returning early.
Files:      src/userfunc.c


*** ../vim-8.2.4989/src/userfunc.c      2022-05-21 15:38:33.090080625 +0100
--- src/userfunc.c      2022-05-21 16:26:14.763443571 +0100
***************
*** 5037,5042 ****
--- 5037,5043 ----
      }
      if (!ends_excmd2(name, arg))
      {
+       vim_free(fname);
        emsg(ex_errmsg(e_trailing_characters_str, arg));
        return NULL;
      }
*** ../vim-8.2.4989/src/version.c       2022-05-21 15:38:33.094080625 +0100
--- src/version.c       2022-05-21 16:28:24.050972875 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4990,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
244. You use more than 20 passwords.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220521153033.599331C0473%40moolenaar.net.

Raspunde prin e-mail lui