[sr-dev] git:master:609297d6: dialog: safety checks and free of profiles in case of errors