Prevent a possible memory leak