Plug leaks with regex handling

There were a number of locations in edgecases where the regular expression object wasn't freed after it was allocated (mostly "short circuit logic" which returned kyua_error_t objects). The attached patch addresses these edgecases.

Sponsored-by: EMC / Isilon Storage Division