Memleak when parsing SGR with colons
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#790539)
Description
From https://github.com/neovim/neovim/issues/7573:
grep VmRSS /proc/$(pidof gnome-terminal-server)/status
for i in {1..10000}; do echo -ne '\e[38:5:200m' done
grep VmRSS /proc/$(pidof gnome-terminal-server)/status
Notice the significant growth.
Happens with both the colon-only (38:5:200) and mixed (38;5:200) notation, does not happen with the typical semicolon-only (38;5;200). Happens with 256-color and truecolor sequences.
Version: git master
Resolution: RESOLVED FIXED