Added CoTaskMem functions

No more leaking memory!