kmalloc is freed with kfree in the linux kernel. kmalloc support was
added in r204832, but kfree was not. Adding kfree fixes incorrectly
detected memory leaks.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D64030
[analyzer] Support kfree in MallocChecker ClosedPublic Authored by Nathan-Huckleberry on Jul 1 2019, 12:59 PM.
Details Summary kmalloc is freed with kfree in the linux kernel. kmalloc support was
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 1 2019, 1:07 PM Closed by commit rL364875: [analyzer] Support kfree in MallocChecker (authored by Nathan-Huckleberry). · Explain WhyJul 1 2019, 4:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 207439 cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
cfe/trunk/test/Analysis/kmalloc-linux.c
|