fixed memory leak in C_POINTER