Forgot copy constructor leading to double free errors