Avoid a possible memory leak.