fix mismatched delete [] in regex extension (#1941)
* fix mismatched delete [] * strdup needs to be free'd, not deleted
This commit is contained in:
parent
5539484f92
commit
178658912e
@ -56,7 +56,7 @@ void RegEx::Clear ()
|
||||
re = nullptr;
|
||||
mFree = true;
|
||||
if (subject)
|
||||
delete [] subject;
|
||||
free(subject);
|
||||
subject = nullptr;
|
||||
mMatchCount = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user