diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-23 15:59:59 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-23 23:44:32 +0200 |
commit | 2a49163103827465f25810f5f4e3d4305159f209 (patch) | |
tree | 673b3f877e9ff51cb27ed1c844495b3f432d5f45 /src/nvim/api/buffer.c | |
parent | 5c9860a0a2bf27d409c986673f0a74542561c4c3 (diff) | |
download | rneovim-2a49163103827465f25810f5f4e3d4305159f209.tar.gz rneovim-2a49163103827465f25810f5f4e3d4305159f209.tar.bz2 rneovim-2a49163103827465f25810f5f4e3d4305159f209.zip |
api_clear_error()
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 2f306ebfc8..81d25d7c95 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -640,7 +640,7 @@ Boolean nvim_buf_is_valid(Buffer buffer) { Error stub = ERROR_INIT; Boolean ret = find_buffer_by_handle(buffer, &stub) != NULL; - xfree(stub.msg); + api_clear_error(&stub); return ret; } |