aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorMichael Ennen <mike.ennen@gmail.com>2016-10-30 15:10:11 -0700
committerJames McCoy <jamessan@jamessan.com>2016-12-12 10:17:35 -0500
commit25438f149fda66375ed54a735e4477f3f4d87338 (patch)
treef36858650c2adeee6e2b6aa1f305badf054614f1 /src/nvim/tag.c
parente97e24c77e70ec8bdaca51b0b477ca0c38ea35e0 (diff)
downloadrneovim-25438f149fda66375ed54a735e4477f3f4d87338.tar.gz
rneovim-25438f149fda66375ed54a735e4477f3f4d87338.tar.bz2
rneovim-25438f149fda66375ed54a735e4477f3f4d87338.zip
vim-patch:7.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. https://github.com/vim/vim/commit/107e1eef1df3b786ad3ad49fbdb9e058649303b5
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index 1df1952f53..597f737410 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -790,7 +790,7 @@ do_tag (
vim_snprintf((char *)IObuff, IOSIZE, "ltag %s", tag);
set_errorlist(curwin, list, ' ', IObuff);
- list_free(list, TRUE);
+ list_free(list);
xfree(fname);
xfree(cmd);