diff options
| author | babenko <[email protected]> | 2022-08-08 07:58:50 +0300 | 
|---|---|---|
| committer | babenko <[email protected]> | 2022-08-08 07:58:50 +0300 | 
| commit | d3b45ae65a1291007dcbc5b1e02c752914421d64 (patch) | |
| tree | e491122387d49c138703cfb4f1b2900b0eacde69 /library/cpp | |
| parent | 15c153a390f6126a74a5e9b3018aa3be9356e0b7 (diff) | |
Get rid of NYTAlloc::FreeNonNull usages
Diffstat (limited to 'library/cpp')
| -rw-r--r-- | library/cpp/yt/memory/blob.cpp | 4 | ||||
| -rw-r--r-- | library/cpp/yt/memory/ref_counted.h | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/library/cpp/yt/memory/blob.cpp b/library/cpp/yt/memory/blob.cpp index bffb3ad2498..ac2a8948bd3 100644 --- a/library/cpp/yt/memory/blob.cpp +++ b/library/cpp/yt/memory/blob.cpp @@ -171,7 +171,7 @@ void TBlob::Reallocate(size_t newCapacity)      }      char* newBegin = DoAllocate(newCapacity);      ::memcpy(newBegin, Begin_, Size_); -    NYTAlloc::FreeNonNull(Begin_); +    ::free(Begin_);  #ifdef YT_ENABLE_REF_COUNTED_TRACKING      TRefCountedTrackerFacade::AllocateSpace(TagCookie_, newCapacity);      TRefCountedTrackerFacade::FreeSpace(TagCookie_, Capacity_); @@ -185,7 +185,7 @@ void TBlob::Free()      if (!Begin_) {          return;      } -    NYTAlloc::FreeNonNull(Begin_); +    ::free(Begin_);  #ifdef YT_ENABLE_REF_COUNTED_TRACKING      TRefCountedTrackerFacade::FreeTagInstance(TagCookie_);      TRefCountedTrackerFacade::FreeSpace(TagCookie_, Capacity_); diff --git a/library/cpp/yt/memory/ref_counted.h b/library/cpp/yt/memory/ref_counted.h index ffc81bb6d17..a295444f495 100644 --- a/library/cpp/yt/memory/ref_counted.h +++ b/library/cpp/yt/memory/ref_counted.h @@ -38,7 +38,7 @@ struct TFreeMemory  {      static void Do(void* ptr)      { -        NYTAlloc::FreeNonNull(ptr); +        ::free(ptr);      }  }; | 
