[all-commits] [llvm/llvm-project] 6ef071: [scudo/standalone] Fix leak in ThreadedGlobalQuara...

Roland McGrath via All-commits all-commits at lists.llvm.org
Fri Nov 13 22:25:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ef07111a402a87fda096b6b8d7327e4aa89d4d6
      https://github.com/llvm/llvm-project/commit/6ef07111a402a87fda096b6b8d7327e4aa89d4d6
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/quarantine_test.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list