[vim/vim] Memory leak when skipping invalid literal dict (PR #19178)

1 view
Skip to first unread message

Sean Dewar

unread,
6:18 AM (6 hours ago) 6:18 AM
to vim/vim, Subscribed

Problem: memory leak when not evaluating (just parsing) invalid literal dict.
Solution: always clear the key's typval.

Though "check_typval_is_value(&tv) == FAIL && !evaluate" is maybe never true, also always clear tvs if check_typval_is_value fails; at worst this would be a no-op as their initial types are VAR_UNKNOWN.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19178

Commit Summary

  • 9e9db44 Memory leak when skipping invalid literal dict

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19178@github.com>

Reply all
Reply to author
Forward
0 new messages