diff options
| author | Alexander Gololobov <[email protected]> | 2022-02-10 16:47:37 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:37 +0300 | 
| commit | 39608cdb86363c75ce55b2b9a69841c3b71f22cf (patch) | |
| tree | 4ec132c1665bd4d68e3628aa18d937c70d32413b /library/cpp/malloc | |
| parent | 54295b9bd4dc45c54d804084fd846d945148a7f0 (diff) | |
Restoring authorship annotation for Alexander Gololobov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/malloc')
| -rw-r--r-- | library/cpp/malloc/api/malloc.cpp | 8 | ||||
| -rw-r--r-- | library/cpp/malloc/api/malloc.h | 2 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/library/cpp/malloc/api/malloc.cpp b/library/cpp/malloc/api/malloc.cpp index eed1c58a383..9bda35814fb 100644 --- a/library/cpp/malloc/api/malloc.cpp +++ b/library/cpp/malloc/api/malloc.cpp @@ -1,5 +1,5 @@  #include <stdlib.h> -#include <stdio.h> +#include <stdio.h>   #include "malloc.h" @@ -28,9 +28,9 @@ namespace NMalloc {      {      } -    void AbortFromCorruptedAllocator(const char* errorMessage) { -        errorMessage = errorMessage ? errorMessage : "<unspecified>"; -        fprintf(stderr, "Allocator error: %s\n", errorMessage); +    void AbortFromCorruptedAllocator(const char* errorMessage) {  +        errorMessage = errorMessage ? errorMessage : "<unspecified>";  +        fprintf(stderr, "Allocator error: %s\n", errorMessage);           IsAllocatorCorrupted = true;          abort();      } diff --git a/library/cpp/malloc/api/malloc.h b/library/cpp/malloc/api/malloc.h index ebd545d6dd9..d0d6e0c8d47 100644 --- a/library/cpp/malloc/api/malloc.h +++ b/library/cpp/malloc/api/malloc.h @@ -16,7 +16,7 @@ namespace NMalloc {      };      extern volatile bool IsAllocatorCorrupted; -    void AbortFromCorruptedAllocator(const char* errorMessage = nullptr); +    void AbortFromCorruptedAllocator(const char* errorMessage = nullptr);       // this function should be implemented by malloc implementations      TMallocInfo MallocInfo(); | 
