comparison src/quickfix.c @ 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 73cfcf11d983
children 84baca75b7f2
comparison
equal deleted inserted replaced
11397:a4936baa31e3 11398:30af33f4d353
4932 { 4932 {
4933 /* If the location list window is open, then create a new empty 4933 /* If the location list window is open, then create a new empty
4934 * location list */ 4934 * location list */
4935 qf_info_T *new_ll = ll_new_list(); 4935 qf_info_T *new_ll = ll_new_list();
4936 4936
4937 /* first free the list reference in the location list window */
4938 ll_free_all(&orig_wp->w_llist_ref);
4939
4937 orig_wp->w_llist_ref = new_ll; 4940 orig_wp->w_llist_ref = new_ll;
4938 if (llwin != NULL) 4941 if (llwin != NULL)
4939 { 4942 {
4940 llwin->w_llist = new_ll; 4943 llwin->w_llist = new_ll;
4941 new_ll->qf_refcount++; 4944 new_ll->qf_refcount++;