This is an archive of the discontinued LLVM Phabricator instance.

[BPI] Fix memory leak reported by sanitizer bots
ClosedPublic

Authored by ebrevnov on Jul 28 2020, 5:52 AM.

Details

Summary

There is a silly mistake where release() is used instead of reset() for free resources of unique pointer.

Diff Detail

Event Timeline

ebrevnov created this revision.Jul 28 2020, 5:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2020, 5:52 AM
ebrevnov requested review of this revision.Jul 28 2020, 5:52 AM
ebrevnov accepted this revision.Jul 28 2020, 5:53 AM
ebrevnov added a reviewer: ebrevnov.
This revision is now accepted and ready to land.Jul 28 2020, 5:53 AM
This revision was landed with ongoing or failed builds.Jul 28 2020, 5:54 AM
This revision was automatically updated to reflect the committed changes.