diff options
author | aozeritsky <aozeritsky@ydb.tech> | 2023-07-06 16:59:38 +0300 |
---|---|---|
committer | aozeritsky <aozeritsky@ydb.tech> | 2023-07-06 16:59:38 +0300 |
commit | 795e5c087026459a53ae45d648418ef7685f91d5 (patch) | |
tree | 2e270ace1de49c9e9691a9d94c429af0ea19a61d | |
parent | 936e49491234c1f6fcc5b6363f5ce47d552d802e (diff) | |
download | ydb-795e5c087026459a53ae45d648418ef7685f91d5.tar.gz |
Fix possible memleak
-rw-r--r-- | ydb/library/yql/minikql/aligned_page_pool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ydb/library/yql/minikql/aligned_page_pool.cpp b/ydb/library/yql/minikql/aligned_page_pool.cpp index f72cf62d25..f53e8be01e 100644 --- a/ydb/library/yql/minikql/aligned_page_pool.cpp +++ b/ydb/library/yql/minikql/aligned_page_pool.cpp @@ -74,7 +74,8 @@ public: private: void FreePage(void* addr) { - Y_VERIFY_DEBUG(0 == T::Munmap(addr, PageSize), "Munmap failed: %s", LastSystemErrorText()); + auto res = T::Munmap(addr, PageSize); + Y_VERIFY_DEBUG(0 == res, "Munmap failed: %s", LastSystemErrorText()); } private: |