0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

patch 8.1.2107: various memory leaks reported by asan

Problem:    Various memory leaks reported by asan.
Solution:   Free the memory. (Ozaki Kiichi, closes #5003)
This commit is contained in:
Bram Moolenaar
2019-10-01 17:02:16 +02:00
parent b4367b7fb6
commit 8617348e21
11 changed files with 46 additions and 7 deletions

View File

@@ -140,6 +140,10 @@ func Test_method_lambda()
" todo: lambda accepts more arguments than it consumes
" call assert_fails('eval "text"->{x -> x .. " extended"}("more")', 'E99:')
let l = [1, 2, 3]
eval l->{x -> x}()
call assert_equal(1, test_refcount(l))
endfunc
func Test_method_not_supported()