fix leaks (def.)