diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-04-03 17:48:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 17:48:39 +0200 |
commit | 804ea22944146a6607859dbfcf35d24946b065e2 (patch) | |
tree | 94d3ebac9ae1bcbbf45cc000e644155e419d39ba /src/nvim/api/buffer.c | |
parent | abdda664108646a8f1bd3112abb8083d721d38e6 (diff) | |
parent | 2df527e1ff1c599448b6b21953132c0022a8b9ad (diff) | |
download | rneovim-804ea22944146a6607859dbfcf35d24946b065e2.tar.gz rneovim-804ea22944146a6607859dbfcf35d24946b065e2.tar.bz2 rneovim-804ea22944146a6607859dbfcf35d24946b065e2.zip |
Merge pull request #14226 from bfredl/luarefcount
lua: track reference ownership with ASAN when present
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 66c4454f7b..6142db049d 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -222,11 +222,7 @@ Boolean nvim_buf_attach(uint64_t channel_id, return buf_updates_register(buf, channel_id, cb, send_buffer); error: - // TODO(bfredl): ASAN build should check that the ref table is empty? - api_free_luaref(cb.on_lines); - api_free_luaref(cb.on_bytes); - api_free_luaref(cb.on_changedtick); - api_free_luaref(cb.on_detach); + buffer_update_callbacks_free(cb); return false; } |