summaryrefslogtreecommitdiff
path: root/src/proto/channel.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-05-28 22:22:34 +0200
committerBram Moolenaar <Bram@vim.org>2016-05-28 22:22:34 +0200
commit655da31a18ef3f888acf10e68b438e2a851f7b14 (patch)
tree83d8a9b03a2d926d7b94092e975a66f679fd1b70 /src/proto/channel.pro
parentd80629cef03cd40b0bf06c402dfe0b720b3bf608 (diff)
downloadvim-git-655da31a18ef3f888acf10e68b438e2a851f7b14.tar.gz
patch 7.4.1855v7.4.1855
Problem: Valgrind reports memory leak for job that is not freed. Solution: Free all jobs on exit. Add test for failing job.
Diffstat (limited to 'src/proto/channel.pro')
-rw-r--r--src/proto/channel.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro
index 5dc512181..60b68f013 100644
--- 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);