ntdll: Only free the string if the test succeeded.