Unreachable memory leaks fix

-Uncommented important “free” calls