Created attachment 30548 [details] [review] Fix leaks Hi, there are several memory/file handle leaks in xtrans-1.2.5 reported by cppcheck: [xtrans-1.2.5/Xtranslcl.c:355]: (error) Resource leak: server [xtrans-1.2.5/Xtranslcl.c:1171]: (error) Resource leak: fdr [xtrans-1.2.5/Xtranslcl.c:1129]: (possible error) Resource leak: fds [xtrans-1.2.5/Xtranslcl.c:166]: (error) Memory leak: sunaddr [xtrans-1.2.5/Xtranslcl.c:193]: (error) Memory leak: p_sunaddr Attached patch fixes those, the last chunk of the patch corrects an invalid check for the result of an open() operation, which is never true, so this is in fact no memory leak, but results in a coredump if the open fails. Regards, Eric
Thanks for the patch - pushed to git master - I'm sure if any users of the SCO OpenServer & UnixWare platforms upgrade to new X.Org releases, they will appreciate these fixes.
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.