9.3 regexp leak plug

See http://www.postgresql.org/message-id/20140319075359.GA4042@localhost