dict_add_func() calls func_ref() only after dict_add() succeeds, but on the failure path dictitem_free() calls func_unref() on the name. For a lambda or numbered function that is an unref without a matching ref, corrupting its reference count. Take the reference before dict_add() so the failure path stays balanced.
related: #20668
https://github.com/vim/vim/pull/20742
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()