Skip to content

Commit 9b7e102

Browse files
committed
Update thread.rs
1 parent bbe6fa6 commit 9b7e102

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/sys/pal/windows/thread.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ impl Thread {
8888
.into_bytes();
8989
// Attempt to free the memory.
9090
// This should never fail but if it does then there's not much we can do about it.
91-
debug_assert!(c::LocalFree(ptr.cast::<c_void>()).is_null());
91+
let result = c::LocalFree(ptr.cast::<c_void>());
92+
debug_assert!(result.is_null());
9293
Some(CString::from_vec_unchecked(name))
9394
}
9495
}

0 commit comments

Comments
 (0)