Patch 9.0.0999
Problem:    Memory may leak.
Solution:   Free the sound callback function name if it was allocated.
Files:      src/sound.c


*** ../vim-9.0.0998/src/sound.c 2022-10-19 19:24:44.855402846 +0100
--- src/sound.c 2022-12-02 15:44:05.722325138 +0000
***************
*** 60,65 ****
--- 60,67 ----
        soundcb->snd_next = first_callback;
        first_callback = soundcb;
        set_callback(&soundcb->snd_callback, &callback);
+       if (callback.cb_free_name)
+           vim_free(callback.cb_name);
      }
      return soundcb;
  }
*** ../vim-9.0.0998/src/version.c       2022-12-03 11:51:48.897409320 +0000
--- src/version.c       2022-12-03 13:51:56.734038669 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     999,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
220. Your wife asks for sex and you tell her where to find you on IRC.

 /// 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/20221203135251.7B52C1C0574%40moolenaar.net.

Raspunde prin e-mail lui