Added more fixes for memory leaks or use of uninitialized memory