summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-08 17:07:19 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-08 17:07:19 +0200
commit107e1eef1df3b786ad3ad49fbdb9e058649303b5 (patch)
tree1b645e4de0cc6a8021a5c48ca97897edf7e48adf /src/tag.c
parentd56374e25df0b317b01423a01f158157faa647fa (diff)
patch 7.4.1719v7.4.1719
Problem: Leaking memory when there is a cycle involving a job and a partial. Solution: Add a copyID to job and channel. Set references in items referred by them. Go through all jobs and channels to find unreferenced items. Also, decrement reference counts when garbage collecting.
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index 154125950d..4224c6fc25 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -792,7 +792,7 @@ do_tag(
vim_free(cmd);
vim_free(fname);
if (list != NULL)
- list_free(list, TRUE);
+ list_free(list);
goto end_do_tag;
}
@@ -919,7 +919,7 @@ do_tag(
vim_snprintf((char *)IObuff, IOSIZE, "ltag %s", tag);
set_errorlist(curwin, list, ' ', IObuff);
- list_free(list, TRUE);
+ list_free(list);
vim_free(fname);
vim_free(cmd);