Fix for memory leaks / cleanup in cel_pgsql