mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 09:56:31 +00:00
vim-patch:7.4.379
Problem: Accessing freed memory after using setqflist(list, 'r'). (Lcd) Solution: Reset qf_index. https://code.google.com/p/vim/source/detail?r=v7-4-379
This commit is contained in:
@@ -1890,6 +1890,7 @@ static void qf_free(qf_info_T *qi, int idx)
|
||||
}
|
||||
free(qi->qf_lists[idx].qf_title);
|
||||
qi->qf_lists[idx].qf_title = NULL;
|
||||
qi->qf_lists[idx].qf_index = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user