0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2016-05-28 22:22:34 +02:00
parent d80629cef0
commit 655da31a18
5 changed files with 32 additions and 4 deletions

View File

@@ -1126,9 +1126,6 @@ free_all_mem(void)
# endif
# ifdef FEAT_DIFF
diff_clear(curtab);
# endif
# ifdef FEAT_JOB_CHANNEL
channel_free_all();
# endif
clear_sb_text(); /* free any scrollback text */
@@ -1221,6 +1218,10 @@ free_all_mem(void)
# ifdef FEAT_EVAL
eval_clear();
# endif
# ifdef FEAT_JOB_CHANNEL
channel_free_all();
job_free_all();
# endif
free_termoptions();