use pcre's own functions to free pcre related structures