From a779aa7320e60bd70c791f30c1433dec52165247 Mon Sep 17 00:00:00 2001 From: Aleksandr Orefkov Date: Mon, 23 Mar 2026 10:38:10 +0300 Subject: [PATCH] Fix allocator use. --- include/simstr/sstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simstr/sstring.h b/include/simstr/sstring.h index 746c9e6..2cc107d 100644 --- a/include/simstr/sstring.h +++ b/include/simstr/sstring.h @@ -3257,7 +3257,7 @@ public: } /*! * @ru @brief Определить длину строки. - * Ищет символ 0 в буфере строки до его ёмкости, после чего устаналивает длину строки по найденному 0. + * Ищет символ 0 в буфере строки до его ёмкости, после чего устанавливает длину строки по найденному 0. * @en @brief Determine the length of the string. * Searches for the character 0 in the string buffer to its capacity, and then sets the length of the string to the found 0. */ @@ -3283,7 +3283,7 @@ public: if (is_alloced() && capacity_ > need_capacity) { K* newData = size_ <= LocalCapacity ? local_ : alloc_place(need_capacity); traits::copy(newData, data_, size_ + 1); - base_storable::allocator().deallocate(to_real_address(data_)); + dealloc(); data_ = newData; if (size_ > LocalCapacity) {