From b8aee7cef9be2d771d75a51a3026ce19d9ec05c8 Mon Sep 17 00:00:00 2001 From: Doyle Thai Date: Thu, 25 Jan 2018 16:43:51 +1100 Subject: [PATCH] Fix off by 1byte error on tracking string free --- dqn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }