Fixed memory leak. (nw)