Bug 14360

Summary: found a memory leak in file linux-2.6.31/kernel/resource.c
Product: Other Reporter: Martin Ettl (ettl.martin)
Component: OtherAssignee: other_other
Status: CLOSED INVALID    
Severity: normal CC: alan, dave
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.31 Subsystem:
Regression: No Bisected commit-id:
Attachments: should fix the possible memory leak

Description Martin Ettl 2009-10-10 11:02:33 UTC
Created attachment 23329 [details]
should fix the possible memory leak

Hello,

during the check with the static code analysis tool cppcheck (available on
sourceforge), i found a memory leak in file
linux-2.6.31/kernel/resource.c. See the attached
patch, the fixes this issue.

Best regards

Martin
Comment 1 Davidlohr Bueso 2011-07-07 03:40:58 UTC
This is not correct, we mustn't free the new resource if there is no conflict. See https://lkml.org/lkml/2010/1/9/52

Bug needs to be closed.