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