patch to fix memory leak (when ex file completion results in no match)

2007-09-30 Fir de Conversatie Dominique Pelle
Hi I can reproduce a memory leak 100% of the time in vim-7.1.123: Start vim with: vim -u NONE -U NONE Then set the following options: :set nocompatible :set wildmode=longest,list :set wildmenu vim will then leak memory whenever file completion on Ex command results in no match: :e

Re: patch to fix memory leak (when ex file completion results in no match)

2007-09-30 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: I can reproduce a memory leak 100% of the time in vim-7.1.123: Start vim with: vim -u NONE -U NONE Then set the following options: :set nocompatible :set wildmode=longest,list :set wildmenu vim will then leak memory whenever file completion on Ex

Re: patch to fix memory leak (when ex file completion results in no match)

2007-09-30 Fir de Conversatie Dominique Pelle
On 9/30/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Please verify this fixes the leak, also without your suggested patch. I tried your example and it appears to fix it. But I have not tried every possible completion. Yes it does fix the leak. Putting a printf() near the new vim_free() also