annotate runtime/ftplugin/dosini.vim @ 34603:02fbe0bd9418 v9.1.0193

patch 9.1.0193: May leak memory in completion when ga_grow() fails Commit: https://github.com/vim/vim/commit/70e566b0bd29189b1baf3dc915b6a98de36fbded Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Mar 21 07:11:58 2024 +0100 patch 9.1.0193: May leak memory in completion when ga_grow() fails Problem: May leak memory in completion when ga_grow() fails. Solution: Free "wca" when ga_grow() fails (zeertzjq). fixes: #14248 closes: #14249 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 21 Mar 2024 07:15:05 +0100
parents 11b656e74444
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
2 " Language: Configuration File (ini file) for MS-DOS/MS Windows
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
4 " Latest Revision: 2008-07-09
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
5
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
6 if exists("b:did_ftplugin")
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
7 finish
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
8 endif
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
9 let b:did_ftplugin = 1
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
10
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
11 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
12 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
13
1624
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
14 let b:undo_ftplugin = "setl com< cms< fo<"
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
15
18ee39301b82 updated for version 7.2a
vimboss
parents:
diff changeset
16 setlocal comments=:; commentstring=;\ %s formatoptions-=t formatoptions+=croql
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
17
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
18 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1624
diff changeset
19 unlet s:cpo_save