Mercurial > vim
changeset 11398:30af33f4d353 v8.0.0584
patch 8.0.0584: memory leak when executing quickfix tests
commit https://github.com/vim/vim/commit/d788f6fe89c77262c474de323f5dab6d1c814e27
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 23 17:19:43 2017 +0200
patch 8.0.0584: memory leak when executing quickfix tests
Problem: Memory leak when executing quickfix tests.
Solution: Free the list reference. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 23 Apr 2017 17:30:03 +0200 |
parents | a4936baa31e3 |
children | 0031acbf1fce |
files | src/quickfix.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -4934,6 +4934,9 @@ qf_free_stack(win_T *wp, qf_info_T *qi) * 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) {