Fix memleak when free rules w/o compiled regex