Mercurial > vim
comparison src/regexp.c @ 8863:e1b84109506a v7.4.1719
commit https://github.com/vim/vim/commit/107e1eef1df3b786ad3ad49fbdb9e058649303b5
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 8 17:07:19 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 08 Apr 2016 17:15:06 +0200 |
parents | 318eaa6fa973 |
children | 3cf6704d6efc |
comparison
equal
deleted
inserted
replaced
8862:e759159b4432 | 8863:e1b84109506a |
---|---|
7908 error = TRUE; | 7908 error = TRUE; |
7909 } | 7909 } |
7910 | 7910 |
7911 if (error) | 7911 if (error) |
7912 { | 7912 { |
7913 list_free(list, TRUE); | 7913 list_free(list); |
7914 return NULL; | 7914 return NULL; |
7915 } | 7915 } |
7916 return list; | 7916 return list; |
7917 } | 7917 } |
7918 #endif | 7918 #endif |