To: vim_dev@googlegroups.com Subject: Patch 9.0.0999 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///