]> git.eshelyaron.com Git - emacs.git/commit
Fix memory leak in ts_load_language
authorYuan Fu <casouri@gmail.com>
Mon, 17 Oct 2022 20:43:06 +0000 (13:43 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 17 Oct 2022 20:52:31 +0000 (13:52 -0700)
commit1cd42bfb8a5ff2aade43f31b864a8d2cd643d5a3
tree52088c30cce4bd9dac961fa71286490c9bf02fbb
parent5a2c1a743b54f7d3355f9b1dc893bbe72e8df6bc
Fix memory leak in ts_load_language

* src/treesit.c (ts_load_language): Move initialization of c_name down
and free it right after use.
src/treesit.c