LsanSuppressions.cpp 721 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright 2016 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #include "include/core/SkTypes.h"
  8. #if !defined(__has_feature)
  9. #define __has_feature(x) 0
  10. #endif
  11. #if __has_feature(address_sanitizer)
  12. extern "C" {
  13. const char* __lsan_default_suppressions();
  14. const char* __lsan_default_suppressions() {
  15. return "leak:libfontconfig\n" // FontConfig looks like it leaks, but it doesn't.
  16. "leak:libGLX_nvidia.so\n" // For NVidia driver.
  17. "leak:libnvidia-glcore.so\n" // For NVidia driver.
  18. "leak:libnvidia-tls.so\n" // For NVidia driver.
  19. ;
  20. }
  21. }
  22. #endif