fix mismatched delete [] in regex extension (#1941)

* fix mismatched delete []

* strdup needs to be free'd, not deleted
This commit is contained in:
sappho 2023-03-27 09:50:31 -04:00 committed by GitHub
parent 5539484f92
commit 178658912e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ void RegEx::Clear ()
re = nullptr;
mFree = true;
if (subject)
delete [] subject;
free(subject);
subject = nullptr;
mMatchCount = 0;
}