aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorAxel <axelhjq@gmail.com>2025-06-23 16:07:52 +0200
committerGitHub <noreply@github.com>2025-06-23 22:07:52 +0800
commitfb5a51e77570ce2b548d22d250d503102aeac2fe (patch)
treed7296b45e7ef218c6f8a1dd99d8132ff4077c4b9 /runtime/lua/vim/_system.lua
parent835f11595fb057197fc867a137f0d5bb56e9dfcd (diff)
downloadrneovim-fb5a51e77570ce2b548d22d250d503102aeac2fe.tar.gz
rneovim-fb5a51e77570ce2b548d22d250d503102aeac2fe.tar.bz2
rneovim-fb5a51e77570ce2b548d22d250d503102aeac2fe.zip
fix(tui): avoid memory leak and compiler warning on Windows (#34225)
Problem: On Windows, the value of `term` is overwritten without freeing the old allocated value, which may lead to a memory leak. GCC also gives a "incompatible pointer type" warning about passing `*term` to os_tty_guess_term(). Solution: Don't override the old allocated value, and copy the guessed value to `term` if its old value is NULL.
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions