removed a possible memory leak