ownership with operations - fix leaks