diff options
author | James McCoy <jamessan@jamessan.com> | 2017-12-18 14:56:49 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-12-18 14:57:57 -0500 |
commit | 765ff94b5be90bc33eb8eba3fdfe3e910124450d (patch) | |
tree | d3c1fce80be42ea1c52fe60e43104beb9d08ff5f /src/nvim/quickfix.c | |
parent | f0bd2bc39aeb7797e3dd5c14797606dac45c8a75 (diff) | |
download | rneovim-765ff94b5be90bc33eb8eba3fdfe3e910124450d.tar.gz rneovim-765ff94b5be90bc33eb8eba3fdfe3e910124450d.tar.bz2 rneovim-765ff94b5be90bc33eb8eba3fdfe3e910124450d.zip |
vim-patch:8.0.0584: memory leak when executing quickfix tests
Problem: Memory leak when executing quickfix tests.
Solution: Free the list reference. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/d788f6fe89c77262c474de323f5dab6d1c814e27
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 9a4341f3a4..73ad14ab22 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -4313,6 +4313,10 @@ static void qf_free_stack(win_T *wp, qf_info_T *qi) // If the location list window is open, then create a new empty location // list qf_info_T *new_ll = ll_new_list(); + + // first free the list reference in the location list window + ll_free_all(&orig_wp->w_llist_ref); + orig_wp->w_llist_ref = new_ll; if (llwin != NULL) { llwin->w_llist = new_ll; |