fixed dealloc of tower ring elements to allow non global malloc and free