smacker / go-tree-sitter

Golang bindings for tree-sitter https://github.com/tree-sitter/tree-sitter
MIT License
447 stars 124 forks source link

memory of tree not be auto released after parse finished #173

Closed adam-eda closed 1 week ago

adam-eda commented 2 months ago

my program ussing go-tree-sitter v0.0.0-20240423010953-8ba036550382 to parse some C source code,but i find it memory not be released after the previous C source code parse finished, my gcc version is 8.4.1 and my go version is 1.20.3

adam-eda commented 1 week ago

Through observes detectably,although memory not be freed immediately,memory be freed after a few minutes,there is no question i think;