From 107e1eef1df3b786ad3ad49fbdb9e058649303b5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 8 Apr 2016 17:07:19 +0200 Subject: 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. --- src/regexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/regexp.c') 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; -- cgit v1.2.1