Created attachment 51050 [details] cppcheck's report Just ran cppcheck (the famous static C/C++ code analyzer - https://github.com/danmar/cppcheck) against the xserver's sources. It points out some interesting issues that would need to be checked. I added the report as an attachment.
Several of the reported memory leaks were fixed as noted in bug 50281. Unfortunately a single bug report listing a bunch of different bugs is hard to fix, and line number references from 2 years ago are likely to have changed in the meantime.
Definitely not going to go correlate line numbers from seven years ago.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.