Mercurial > vim
diff src/proto/channel.pro @ 9143:b9c1a397a8a6 v7.4.1855
commit https://github.com/vim/vim/commit/655da31a18ef3f888acf10e68b438e2a851f7b14
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 28 22:22:34 2016 +0200
patch 7.4.1855
Problem: Valgrind reports memory leak for job that is not freed.
Solution: Free all jobs on exit. Add test for failing job.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 May 2016 22:30:06 +0200 |
parents | d4606ae170aa |
children | 4b55d8e162d4 |
line wrap: on
line diff
--- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -50,6 +50,7 @@ void clear_job_options(jobopt_T *opt); void free_job_options(jobopt_T *opt); int get_job_options(typval_T *tv, jobopt_T *opt, int supported); channel_T *get_channel_arg(typval_T *tv, int check_open, int reading, int part); +void job_free_all(void); int set_ref_in_job(int copyID); void job_unref(job_T *job); int free_unused_jobs_contents(int copyID, int mask);