- fix a possible memory leak