aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-01-24 06:28:09 -0500
committerGitHub <noreply@github.com>2022-01-24 06:28:09 -0500
commit1907a9481423ccf4433f8184bbfdc633589e43f5 (patch)
treeacba04413b8213d8f19e3a46e64d24c6877fc1bd /src/nvim/buffer.c
parent7e2ce35e3b7f8be5e8d01b44c2fdba0b4e23fbd4 (diff)
parentd224957d30654dfa7fac7732b81f6a1b495a418b (diff)
downloadrneovim-1907a9481423ccf4433f8184bbfdc633589e43f5.tar.gz
rneovim-1907a9481423ccf4433f8184bbfdc633589e43f5.tar.bz2
rneovim-1907a9481423ccf4433f8184bbfdc633589e43f5.zip
Merge pull request #17143 from jamessan/coverity-fixes
Various Coverity fixes
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index abd22fba26..0248d42f58 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -4351,7 +4351,7 @@ int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use
// Only free the string buffer if we allocated it.
// Note: This is not needed if `str` is pointing at `tmp`
if (opt == STL_VIM_EXPR) {
- xfree(str);
+ XFREE_CLEAR(str);
}
if (num >= 0 || (!itemisflag && str && *str)) {