[#absl-FindAndReportLeaks]
= xref:absl.adoc[absl]::FindAndReportLeaks
:relfileprefix: ../
:mrdocs:

If any leaks are detected, prints a leak report and returns true&period; This function may be called repeatedly, and does not affect end&hyphen;of&hyphen;process leak checking&period;

== Synopsis

Declared in `&lt;absl&sol;debugging&sol;leak&lowbar;check&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
FindAndReportLeaks();
----

== Description

Example&colon; if (FindAndReportLeaks()) &lcub; &period;&period;&period; diagnostic already printed&period; Exit with failure code&period; exit(1) &rcub;

== Return Value

True if any leaks were detected&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
