He didn’t kill her because she didn’t actually fail. She put a tracking device on the ship and because of that they were going to find them and their base. It was just like what they did in ANH with the Falcon. They let them escape for a greater advantage.
Not to worry though, Vader’s definitely gonna kill her by the end.