Release datatypes to prevent resouce leak