Bug 26559 - [cppcheck] found a lots of resource and memory leaks
Summary: [cppcheck] found a lots of resource and memory leaks
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLU (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 14:50 UTC by ettlmartin
Modified: 2010-02-14 09:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix a bunch of errors, detected by cppcheck (1.51 KB, patch)
2010-02-13 14:50 UTC, ettlmartin
Details | Splinter Review

Description ettlmartin 2010-02-13 14:50:53 UTC
Created attachment 33283 [details] [review]
fix a bunch of errors, detected by cppcheck

during a check of the current git head with the static code analyser (cppcheck: http://sourceforge.net/projects/cppcheck/) the tool discoverd a bunch of resource and memory leaks.

Please refer the attched patch a few of them, but not all.

Best regards

Ettl Martin
Comment 1 Brian Paul 2010-02-14 09:05:25 UTC
I've applied your patches.  Thanks.

Just FYI, a lot of the test programs in Mesa are "throw-aways" in which we really don't care about mem leaks or stuff like that.

The src/glu/mini/ and src/glu/mesa/ directories should probably be removed.  They haven't been used in years.


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.