correctly fixing memory leak (overlooked field was assign)