Bug 14360 - found a memory leak in file linux-2.6.31/kernel/resource.c
Summary: found a memory leak in file linux-2.6.31/kernel/resource.c
Status: CLOSED INVALID
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-10 11:02 UTC by Martin Ettl
Modified: 2012-06-13 19:47 UTC (History)
2 users (show)

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


Attachments
should fix the possible memory leak (371 bytes, patch)
2009-10-10 11:02 UTC, Martin Ettl
Details | Diff

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.

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