aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/blob.cpp
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2022-08-08 07:58:50 +0300
committerbabenko <babenko@yandex-team.com>2022-08-08 07:58:50 +0300
commitd3b45ae65a1291007dcbc5b1e02c752914421d64 (patch)
treee491122387d49c138703cfb4f1b2900b0eacde69 /library/cpp/yt/memory/blob.cpp
parent15c153a390f6126a74a5e9b3018aa3be9356e0b7 (diff)
downloadydb-d3b45ae65a1291007dcbc5b1e02c752914421d64.tar.gz
Get rid of NYTAlloc::FreeNonNull usages
Diffstat (limited to 'library/cpp/yt/memory/blob.cpp')
-rw-r--r--library/cpp/yt/memory/blob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yt/memory/blob.cpp b/library/cpp/yt/memory/blob.cpp
index bffb3ad249..ac2a8948bd 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_);