Bug 14369 - found a resource leak in linux-2.6.31/arch/mips/boot/addinitrd.c
Summary: found a resource leak in linux-2.6.31/arch/mips/boot/addinitrd.c
Status: CLOSED OBSOLETE
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 20:01 UTC by Martin Ettl
Modified: 2012-06-13 19:52 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.31
Subsystem:
Regression: No
Bisected commit-id:


Attachments
should fix the resource leak (320 bytes, patch)
2009-10-11 20:01 UTC, Martin Ettl
Details | Diff

Description Martin Ettl 2009-10-11 20:01:11 UTC
Hello,

during the check with the static code analysis tool cppcheck (available on
sourceforge:: https://sourceforge.net/projects/cppcheck/), i found a possible
resource leak in file 
linux-2.6.31/arch/mips/boot/addinitrd.c. See the attached
patch, the fixes this issue.

Best regards
Comment 1 Martin Ettl 2009-10-11 20:01:45 UTC
Created attachment 23344 [details]
should fix the resource leak
Comment 2 Andrew Morton 2009-10-12 01:08:48 UTC
Again, please don't send patches via bugzilla.  Please email them!

Documentation/SubmittingPatches has a lot of description.  Please Cc
myself and linux-kernel on each patch.  Also use
scripts/get_maintainer.sh to identify other relevant recipients.

On Sun, 11 Oct 2009 20:01:12 GMT bugzilla-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=14369
> 
>            Summary: found a resource leak in
>                     linux-2.6.31/arch/mips/boot/addinitrd.c
>            Product: Other
>            Version: 2.5
>     Kernel Version: 2.6.31
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>         AssignedTo: other_other@kernel-bugs.osdl.org
>         ReportedBy: ettl.martin@gmx.de
>         Regression: No
> 
> 
> Hello,
> 
> during the check with the static code analysis tool cppcheck (available on
> sourceforge:: https://sourceforge.net/projects/cppcheck/), i found a possible
> resource leak in file 
> linux-2.6.31/arch/mips/boot/addinitrd.c. See the attached
> patch, the fixes this issue.
> 
> Best regards
> 
> -- 
> Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.

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