summaryrefslogtreecommitdiff
path: root/src/regexp.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/regexp.c
parentd56374e25df0b317b01423a01f158157faa647fa (diff)
downloadvim-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/regexp.c')
-rw-r--r--src/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c
index b20e9c5ec..fada9fe95 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -7910,7 +7910,7 @@ reg_submatch_list(int no)
if (error)
{
- list_free(list, TRUE);
+ list_free(list);
return NULL;
}
return list;