diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/sys_alloc.h | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) | |
download | ydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz |
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/sys_alloc.h')
-rw-r--r-- | util/system/sys_alloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/sys_alloc.h b/util/system/sys_alloc.h index 3d496ed4f4..4221a28f8c 100644 --- a/util/system/sys_alloc.h +++ b/util/system/sys_alloc.h @@ -3,13 +3,13 @@ #include <util/system/compiler.h> #include <cstdlib> -#include <new> +#include <new> inline void* y_allocate(size_t n) { void* r = malloc(n); if (r == nullptr) { - throw std::bad_alloc(); + throw std::bad_alloc(); } return r; @@ -36,7 +36,7 @@ inline void* y_reallocate(void* p, size_t new_sz) { void* r = realloc(p, new_sz); if (r == nullptr) { - throw std::bad_alloc(); + throw std::bad_alloc(); } return r; |