Bug 14360
Summary: | found a memory leak in file linux-2.6.31/kernel/resource.c | ||
---|---|---|---|
Product: | Other | Reporter: | Martin Ettl (ettl.martin) |
Component: | Other | Assignee: | 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 |
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. |
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