This is an archive of the discontinued LLVM Phabricator instance.

Fix memory leak in SubsPrimitiveParmItanium
ClosedPublic

Authored by teemperor on May 27 2018, 12:33 AM.

Details

Summary

FastDemangle gives us a C-string that we own (which is allocated in SymbolDemangler::GetDemangledCopy).
As we are not deleting the string, we leak memory whenever we call SubsPrimitiveParmItanium.

Diff Detail

Repository
rL LLVM

Event Timeline

teemperor created this revision.May 27 2018, 12:33 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 27 2018, 12:35 AM
This revision was automatically updated to reflect the committed changes.