Avoid a potential memory leak