We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b4973 commit 8e5114aCopy full SHA for 8e5114a
library/std/src/sys/pal/unix/thread.rs
@@ -73,6 +73,7 @@ impl Thread {
73
// on the stack size, in which case we can only gracefully return
74
// an error here.
75
if libc::pthread_attr_setstacksize(attr.as_mut_ptr(), stack_size) != 0 {
76
+ assert_eq!(libc::pthread_attr_destroy(attr.as_mut_ptr()), 0);
77
drop(Box::from_raw(p));
78
return Err(io::Error::other("invalid stack size"));
79
}
0 commit comments