This is an archive of the discontinued LLVM Phabricator instance.

Fix memory leaks in MinidumpParserTest
ClosedPublic

Authored by teemperor on Jan 20 2018, 11:39 PM.

Details

Summary

We never delete the allocated RegisterContext objects, causing those tests to fail with enabled memory sanitizer.

Diff Detail

Event Timeline

teemperor created this revision.Jan 20 2018, 11:39 PM

Same as with the last one. For obviously correct bug fixes like this, just commit them. As an aside, make_unique will make this a bit shorter so it fits on one line. e.g. auto reg_interface = llvm::make_unique<RegisterContextLinux_x86_x64>(arch);

zturner accepted this revision.Jan 21 2018, 12:42 PM
This revision is now accepted and ready to land.Jan 21 2018, 12:42 PM
teemperor updated this revision to Diff 130846.Jan 22 2018, 1:47 AM
  • Using make_unique now.
This revision was automatically updated to reflect the committed changes.