Avoid possible memory leak.