This is an archive of the discontinued LLVM Phabricator instance.

Fix memory leak in ManagedStatic
Needs ReviewPublic

Authored by aratajew on Jan 23 2019, 4:53 AM.

Details

Reviewers
chandlerc
chapuni
Summary

ManagedStaticMutex is allocated once we call getManagedStaticMutex, but it is nowhere deallocated.

Diff Detail

Event Timeline

aratajew created this revision.Jan 23 2019, 4:53 AM

Generally (especially bounded) memory allocation that remains reachable but is not allocated isn't considered a leak, as such.

I believe this code as-is is intentional.

This comment was removed by amaiorano.