This is an archive of the discontinued LLVM Phabricator instance.

[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
added in r204832, but kfree was not. Adding kfree fixes incorrectly
detected memory leaks.

Diff Detail

Repository
rL LLVM

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2019, 12:59 PM
jordan_rose resigned from this revision.Jul 1 2019, 1:07 PM
jordan_rose edited reviewers, added: dcoughlin; removed: jordan_rose.
NoQ accepted this revision.Jul 1 2019, 1:07 PM

Whoops. Thanks!!

This revision is now accepted and ready to land.Jul 1 2019, 1:07 PM
Szelethus accepted this revision.Jul 1 2019, 3:26 PM

Nice.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2019, 4:35 PM