diff options
author | oni-link <knil.ino@gmail.com> | 2014-07-23 13:40:19 +0200 |
---|---|---|
committer | oni-link <knil.ino@gmail.com> | 2014-07-23 15:13:28 +0200 |
commit | bb1f08f6e8a017c4a1361ed838b0a54e742385c2 (patch) | |
tree | 53753f8f9c64afd0e4814ad89a57061cad3e8f9e | |
parent | ba04a1c30674523fb7880b3003d8087ed7852cd9 (diff) | |
download | rneovim-bb1f08f6e8a017c4a1361ed838b0a54e742385c2.tar.gz rneovim-bb1f08f6e8a017c4a1361ed838b0a54e742385c2.tar.bz2 rneovim-bb1f08f6e8a017c4a1361ed838b0a54e742385c2.zip |
Fix memory leak in provider_call.
If no channel can be found for a method, free argument arg before
returning.
-rw-r--r-- | src/nvim/os/provider.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os/provider.c b/src/nvim/os/provider.c index 2e42cbb8f2..99cc078e94 100644 --- a/src/nvim/os/provider.c +++ b/src/nvim/os/provider.c @@ -109,6 +109,7 @@ Object provider_call(char *method, Object arg) "Provider for \"%s\" is not available", method); report_error(buf); + msgpack_rpc_free_object(arg); return NIL; } |