[vim/vim] patch 9.2.$version: memory leak when reading a spell file with SN_SAL… (PR #20836)
Christian Brabandt (Vim Github Repository) <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/[email protected]> |
… and SN_SOFO
Problem: Memory leak when a spell file has an SN_SAL section before an
SN_SOFO section: set_sofo() reuses sl_sal without freeing the
salitem_T entries left by read_sal_section() (after v9.2.0846).
Solution: Factor the SAL free loop into free_sal_items() and call it
before set_sofo() reuses sl_sal.
closes: #PR
Supported by AI.
You can view, comment on, or merge this pull request online at:
https://github.com/vim/vim/pull/20836
-- Commit Summary --
* patch 9.2.$version: memory leak when reading a spell file with SN_SAL and SN_SOFO
-- File Changes --
M src/proto/spell.pro (1)
M src/spell.c (39)
M src/spellfile.c (2)
-- Patch Links --
https://github.com/vim/vim/pull/20836.patch
https://github.com/vim/vim/pull/20836.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20836
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/[email protected]>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20836%40github.com.