tessel/runtime#508 r=@johnnyman727: freeing regexes