This is a cherry-picked commit
55ba7264c0722c9519c0fdfacdf2363ad1c59e94
from uctags to address a memory leak reported in
https://github.com/universal-ctags/ctags/issues/3372 You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3203
-- Commit Summary --
* cxx: use a trashbox for deleteing tokens allocated for anonymous parameters
-- File Changes --
M ctags/parsers/cxx/cxx_parser_function.c (5)
-- Patch Links --
https://github.com/geany/geany/pull/3203.patch https://github.com/geany/geany/pull/3203.diff
This is a bugfix from upstream ctags which fixes a common memory leak so unless there are some objections, I'll merge it in about a week.
Okay, I trust you on this. I don't even know what a trashbox is in this context.
Well, it's something that serves for memory deallocation in ctags which is about all I know. But this simply is an upstream code (and it fixes the leak for me, I tested it) and as long as we trust upstream, it should be OK to use.
Fine by me.
Merged #3203 into master.
github-comments@lists.geany.org