freeing regexes

This PR addresses two places in which we never free regex structs after hsregex callocs them.