Registers ptr[0,size‐1] as pointers to memory that is still actively being referenced and for which leak checking should be ignored. This function is useful if you store pointers in mapped memory, for memory ranges that we know are correct but for which normal analysis would flag as leaked code.

Synopsis

Declared in <absl/debugging/leak_check.h>

void
RegisterLivePointers(
    void const* ptr,
    size_t size);

Parameters

Name

Description

ptr

Pointer to the start of the memory range to register.

size

Size, in bytes, of the memory range to register.

Created with MrDocs