improving memory leak message