blob: 85918088ccdb2cb627bd25f08847060eb22fc8b4 [file] [log] [blame]
Sergey Matveevf4633ac2013-05-14 15:48:54 +00001================
2LeakSanitizer
3================
4
5.. contents::
6 :local:
7
8Introduction
9============
10
Sergey Matveev072db592013-12-10 20:10:30 +000011LeakSanitizer is a run-time memory leak detector. It can be combined with
12:doc:`AddressSanitizer` to get both memory error and leak detection.
13LeakSanitizer does not introduce any additional slowdown when used in this mode.
14The LeakSanitizer runtime can also be linked in separately to get leak detection
15only, at a minimal performance cost.
Sergey Matveevf4633ac2013-05-14 15:48:54 +000016
17Current status
18==============
19
Anna Zaks8264a8c2015-06-25 23:36:44 +000020LeakSanitizer is turned on by default, but it is only supported on x86\_64
21Linux.
Sergey Matveev072db592013-12-10 20:10:30 +000022
23The combined mode has been tested on fairly large software projects. The
24stand-alone mode has received much less testing.
25
26There are plans to support LeakSanitizer in :doc:`MemorySanitizer` builds.
Sergey Matveevf4633ac2013-05-14 15:48:54 +000027
28More Information
29================
30
Alexey Samsonov2e2469d2015-12-04 00:38:13 +000031`<https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer>`_