diff options
author | dzats <[email protected]> | 2022-02-10 16:49:37 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:37 +0300 |
commit | 44f31b316af517a4fbc6a82ebed8a1c51807deac (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/malloc/api | |
parent | 25972584abddd173801b48d92f8719e83af797b1 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/malloc/api')
-rw-r--r-- | library/cpp/malloc/api/malloc.cpp | 10 | ||||
-rw-r--r-- | library/cpp/malloc/api/malloc.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/malloc/api/malloc.cpp b/library/cpp/malloc/api/malloc.cpp index 187cd4b74e8..eed1c58a383 100644 --- a/library/cpp/malloc/api/malloc.cpp +++ b/library/cpp/malloc/api/malloc.cpp @@ -1,6 +1,6 @@ #include <stdlib.h> #include <stdio.h> - + #include "malloc.h" namespace { @@ -27,11 +27,11 @@ namespace NMalloc { , CheckParam(CheckEmptyParam) { } - + void AbortFromCorruptedAllocator(const char* errorMessage) { errorMessage = errorMessage ? errorMessage : "<unspecified>"; fprintf(stderr, "Allocator error: %s\n", errorMessage); - IsAllocatorCorrupted = true; - abort(); - } + IsAllocatorCorrupted = true; + abort(); + } } diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h index 946f09ab49c..ebd545d6dd9 100644 --- a/library/cpp/malloc/api/malloc.h +++ b/library/cpp/malloc/api/malloc.h @@ -15,9 +15,9 @@ namespace NMalloc { bool (*CheckParam)(const char* param, bool defaultValue); }; - extern volatile bool IsAllocatorCorrupted; + extern volatile bool IsAllocatorCorrupted; void AbortFromCorruptedAllocator(const char* errorMessage = nullptr); - + // this function should be implemented by malloc implementations TMallocInfo MallocInfo(); |