diff --git a/dqn.h b/dqn.h index 810344e..ed809c5 100644 --- a/dqn.h +++ b/dqn.h @@ -5748,7 +5748,7 @@ void DqnString::Free() #endif if (this->memAPI && this->memAPI->IsValid()) { - this->memAPI->Free(this->str, this->len); + this->memAPI->Free(this->str, (this->max + 1)); this->str = nullptr; }