[scudo/standalone] Fix leak in ThreadedGlobalQuarantine test
authorRoland McGrath <mcgrathr@google.com>
Sat, 14 Nov 2020 06:22:54 +0000 (22:22 -0800)
committerRoland McGrath <mcgrathr@google.com>
Sat, 14 Nov 2020 06:24:44 +0000 (22:24 -0800)
commit6ef07111a402a87fda096b6b8d7327e4aa89d4d6
treee1e704bc544e407101c0ecf2fe632356dcaa0c5e
parent4364539b3a4c5e73561e5ff29e6952a75e89dc43
[scudo/standalone] Fix leak in ThreadedGlobalQuarantine test

This unit test code was using malloc without a corresponding free.
When the system malloc is not being overridden by the code under
test, it might an asan/lsan allocator that notices leaks.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D91472
compiler-rt/lib/scudo/standalone/tests/quarantine_test.cpp