Skip to content
DebugAllocatorReportLeaks

DebugAllocatorReportLeaks

Description

Append a human-readable leak report to out. One block per still-live allocation with its alloc-site stack trace. Called implicitly by DebugAllocatorDestroy; exposed so callers can snapshot earlier.

Parameters

Name Direction Description
out out Str to append to.
self in DebugAllocator handle.

Success

out is updated; nothing is freed or modified on the DebugAllocator.

Failure

Function cannot fail.

Usage example (Cross-references)

Usage examples (Cross-references)
    }
    
    void DebugAllocatorReportLeaks(DebugAllocator *self, Str *out) {
        if (!self || !out) {
            return;
Last updated on