free() rather than DestroyRegex() ?
/me is surprised a regex object is simple enough for free() to suffice ...