freeing regexes

cleaning up
Merge #508 r=@jiahuang: freeing regexes

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