diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-08 17:07:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-08 17:07:19 +0200 |
commit | 107e1eef1df3b786ad3ad49fbdb9e058649303b5 (patch) | |
tree | 1b645e4de0cc6a8021a5c48ca97897edf7e48adf /src/ops.c | |
parent | d56374e25df0b317b01423a01f158157faa647fa (diff) | |
download | vim-git-107e1eef1df3b786ad3ad49fbdb9e058649303b5.tar.gz |
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/ops.c')
-rw-r--r-- | src/ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6391,7 +6391,7 @@ getreg_wrap_one_line(char_u *s, int flags) { if (list_append_string(list, NULL, -1) == FAIL) { - list_free(list, TRUE); + list_free(list); return NULL; } list->lv_first->li_tv.vval.v_string = s; @@ -6465,7 +6465,7 @@ get_reg_contents(int regname, int flags) error = TRUE; if (error) { - list_free(list, TRUE); + list_free(list); return NULL; } return (char_u *)list; |