Resource leaks fixes CID 1134987

Resource leaks fixes CID 1134987