delete seg so to release momery

delete seg so to release momery