diff options
Diffstat (limited to 'libc/malloc_debug/DebugData.cpp')
-rw-r--r-- | libc/malloc_debug/DebugData.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/malloc_debug/DebugData.cpp b/libc/malloc_debug/DebugData.cpp index 58cbbcb47..fdc28100f 100644 --- a/libc/malloc_debug/DebugData.cpp +++ b/libc/malloc_debug/DebugData.cpp @@ -77,6 +77,13 @@ bool DebugData::Initialize() { } } + if (config_.options & RECORD_ALLOCS) { + record.reset(new RecordData()); + if (!record->Initialize(config_)) { + return false; + } + } + if (config_.options & EXPAND_ALLOC) { extra_bytes_ += config_.expand_alloc_bytes; } |