free memory allocated by cs_malloc()