Avert a possible memory leak