[Bugme-new] [Bug 12531] New: arch/arm/mach-iop13xx/pci.c:1077: Memory leak: res
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Fri Jan 23 22:16:54 PST 2009
http://bugzilla.kernel.org/show_bug.cgi?id=12531
Summary: arch/arm/mach-iop13xx/pci.c:1077: Memory leak: res
Product: Platform Specific/Hardware
Version: 2.5
KernelVersion: latest git tree
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ARM
AssignedTo: linux-arm-kernel at lists.arm.linux.org.uk
ReportedBy: danielm77 at spray.se
In the function iop13xx_pci_setup the res is first allocated. And then further
down there is a switch where the default case looks like this..
default:
return 0;
I suggest adding a kfree(res); before the return.
This leak was found by cppcheck - http://sourceforge.net/projects/cppcheck
--
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, or are watching someone who is.
More information about the Bugme-new
mailing list