]> granicus.if.org Git - vim/commit
patch 8.2.1087: possible memory leak when file expansion fails v8.2.1087
authorBram Moolenaar <Bram@vim.org>
Mon, 29 Jun 2020 19:14:51 +0000 (21:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 29 Jun 2020 19:14:51 +0000 (21:14 +0200)
commit566cc8c72bb8036f015a435800f28ef9f6a9a3b6
treef261542849a6c11e2b89a34b660e4966a99a8cd7
parentcf30643ae607ae1a97b50e19c622dc8303723fa2
patch 8.2.1087: possible memory leak when file expansion fails

Problem:    Possible memory leak when file expansion fails.
Solution:   Clear the grow array when returning FAIL.  Use an error message
            instead of an empty string.
src/filepath.c
src/version.c