fix memory leak

CString returns pointer, that should be deallocated explicitly