commit | 292b90d4fa11022661f449dd3efb73d5ac737313 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Mar 18 15:23:16 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Mar 18 15:23:16 2020 +0100 |
tree | 843721ec1450241506c3ac1995bc2c32437caaf8 | |
parent | a21df1db3ca619afdcb47931af042508a6bbc8e5 [diff] [blame] |
patch 8.2.0399: various memory leaks Problem: Various memory leaks. Solution: Avoid the leaks. (Ozaki Kiichi, closes #5803)
diff --git a/src/message.c b/src/message.c index 0119145..fbddfad 100644 --- a/src/message.c +++ b/src/message.c
@@ -865,6 +865,7 @@ char_u *copy = vim_strnsave((char_u *)name, len); semsg(msg, copy == NULL ? "NULL" : (char *)copy); + vim_free(copy); } /*