Resource leaks fixes CID 1134965
Resource leaks fixes CID 1134963
Resource leaks fixes CID 1134965