diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-05-09 20:38:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-05-09 20:38:53 +0200 |
commit | e0f76d00979c972329f6c371463a20da61ccad65 (patch) | |
tree | e28e61d582639de36a5885f47333ae7d63a90dc1 /src/proto/channel.pro | |
parent | fb6ffc732e65dbc459c89247ff78134402f1a18b (diff) | |
download | vim-git-e0f76d00979c972329f6c371463a20da61ccad65.tar.gz |
patch 7.4.1828v7.4.1828
Problem: May try to access buffer that's already freed.
Solution: When freeing a buffer remove it from any channel.
Diffstat (limited to 'src/proto/channel.pro')
-rw-r--r-- | src/proto/channel.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro index 5e0bec54b..5dc512181 100644 --- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -14,6 +14,7 @@ void channel_set_pipes(channel_T *channel, sock_T in, sock_T out, sock_T err); void channel_set_job(channel_T *channel, job_T *job, jobopt_T *options); void channel_set_options(channel_T *channel, jobopt_T *opt); void channel_set_req_callback(channel_T *channel, int part, char_u *callback, partial_T *partial, int id); +void channel_buffer_free(buf_T *buf); void channel_write_any_lines(void); void channel_write_new_lines(buf_T *buf); char_u *channel_get(channel_T *channel, int part); |