This is an archive of the discontinued LLVM Phabricator instance.

Avoid memory leak in ASan test
ClosedPublic

Authored by krytarowski on Sep 8 2019, 8:49 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Sep 8 2019, 8:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2019, 8:49 AM
=================================================================
==371==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 10 byte(s) in 1 object(s) allocated from:
    #0 0x80f57b2 in malloc /public/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3
    #1 0x812088a in main /public/compiler-rt/test/asan/TestCases/inline.cpp:14:28
    #2 0x806480b in ___start (/public/llvm-build/projects/compiler-rt/test/asan/I386NetBSDConfig/TestCases/Output/inline.cpp.tmp+0x806480b)

SUMMARY: AddressSanitizer: 10 byte(s) leaked in 1 allocation(s)
vitalybuka accepted this revision.Sep 20 2019, 3:55 PM
This revision is now accepted and ready to land.Sep 20 2019, 3:55 PM
This revision was automatically updated to reflect the committed changes.