Fix off by 1byte error on tracking string free
This commit is contained in:
parent
81c6f4edc3
commit
b8aee7cef9
2
dqn.h
2
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user