Bug 15437 - [cppcheck] found a resource leak in linux-2.6/scripts/genksyms/genksyms.c
Summary: [cppcheck] found a resource leak in linux-2.6/scripts/genksyms/genksyms.c
Status: RESOLVED OBSOLETE
Alias: None
Product: Other
Classification: Unclassified
Component: Modules (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_modules
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 20:30 UTC by Martin Ettl
Modified: 2012-07-05 15:41 UTC (History)
2 users (show)

See Also:
Kernel Version: current git 2.6.33
Subsystem:
Regression: No
Bisected commit-id:


Attachments
fix (313 bytes, patch)
2010-03-03 20:30 UTC, Martin Ettl
Details | Diff
modified patch (315 bytes, patch)
2010-03-06 12:23 UTC, Martin Ettl
Details | Diff

Description Martin Ettl 2010-03-03 20:30:31 UTC
Created attachment 25344 [details]
fix 

during a check of the current git head of the linux kernel with the static code
analysis tool cppcheck
(http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page) the
tool discovered a resource leak linux-2.6/scripts/genksyms/genksyms.c

Please refer the attached patch, that fixes the issue.

Best regards

Ettl Martin
Comment 1 Andrew Morton 2010-03-03 20:38:24 UTC
Please send patches via email, as per Documentation/SubmittingPatches, thanks.
Comment 2 Martin Ettl 2010-03-06 12:23:25 UTC
Created attachment 25381 [details]
modified patch

Note You need to log in before you can comment on or make changes to this bug.