Fixed a number of KW Memory leaks in ocstack.c