Fix second memory leak. Done by @apique