Several functions leaked a freshly allocated object on an allocation-failure path: they ignored the return of list_append_dict() / dict_add_list() / dict_add_dict() (leaking the GC-linked dict or list on OOM), returned past a cleanup label, or dropped a string copy when a grow failed. Each now frees the object on the failure path.
Affected: getqflist, getreginfo, taglist/gettagstack, hlget, prop_list, getmatches, menu_getinfo, popup_getoptions, sign_getplaced, job_info, term_getcursor/term_scrape, diff(), complete_info, cmdcomplete_info, two Vim9 compile paths (constant string concat and ga_add_string), and call_func generic type args.
related: #20668
https://github.com/vim/vim/pull/20745
(18 files)
—
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.![]()