Fix memory leaks in operators returning relationals.