aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDMokhnatkin <dmitriy.mokhnatkin@gmail.com>2022-05-04 16:39:00 +0300
committerDMokhnatkin <dmitriy.mokhnatkin@gmail.com>2022-05-04 16:39:00 +0300
commitd0711e68c6f7ca95049978088a0d55c11dbc1595 (patch)
tree10a506ce75925ad33ff2a38edf6595cc0181ab58
parent2bf267dc25ea20521a562ebca8bf5c57af7be290 (diff)
downloadydb-d0711e68c6f7ca95049978088a0d55c11dbc1595.tar.gz
Fix yf build with PROFILE_MEMORY_ALLOCATIONS
ref:fb005d8c6d40cc99f4791141ed957448cd8c244d
-rw-r--r--ydb/library/yql/minikql/mkql_alloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ydb/library/yql/minikql/mkql_alloc.h b/ydb/library/yql/minikql/mkql_alloc.h
index 62fb1771df6..fed14ef943c 100644
--- a/ydb/library/yql/minikql/mkql_alloc.h
+++ b/ydb/library/yql/minikql/mkql_alloc.h
@@ -322,8 +322,8 @@ inline void* MKQLAllocFastWithSize(size_t sz, TAllocState* state) {
void MKQLFreeSlow(TAllocPageHeader* header) noexcept;
-inline void MKQLFreeDeprecated(const void* p) noexcept {
- if (!p) {
+inline void MKQLFreeDeprecated(const void* mem) noexcept {
+ if (!mem) {
return;
}
@@ -337,7 +337,7 @@ inline void MKQLFreeDeprecated(const void* p) noexcept {
return;
#endif
- TAllocPageHeader* header = (TAllocPageHeader*)TAllocState::GetPageStart(p);
+ TAllocPageHeader* header = (TAllocPageHeader*)TAllocState::GetPageStart(mem);
if (Y_LIKELY(--header->UseCount != 0)) {
return;
}