before free(ds), it should call DIAL_unregister_app() first
before free(ds), it should call DIAL_unregister_app() first