freeing regexes

This PR addresses two places in which we never free regex structs after hsregex callocs them.
Are you sure no reference to `data` is held on after this?