# HG changeset patch # User Bram Moolenaar # Date 1670076004 -3600 # Node ID 12c0e0f13585fcb387638e02a194a3081e78cfe6 # Parent baea2b085d5e9c08a07a582d29c3eecfdf7c0070 patch 9.0.0999: memory may leak Commit: https://github.com/vim/vim/commit/c0370529c027abc5b1698d53fcfb8c02a0c515da Author: Bram Moolenaar Date: Sat Dec 3 13:52:24 2022 +0000 patch 9.0.0999: memory may leak Problem: Memory may leak. Solution: Free the sound callback function name if it was allocated. diff --git a/src/sound.c b/src/sound.c --- a/src/sound.c +++ b/src/sound.c @@ -60,6 +60,8 @@ get_sound_callback(typval_T *arg) 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; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 999, +/**/ 998, /**/ 997,