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.
2 parents a50a896 + 1f6fb33 commit 2501a10Copy full SHA for 2501a10
src/libstd/sys/sgx/args.rs
@@ -22,12 +22,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
22
}
23
24
25
-pub unsafe fn cleanup() {
26
- let args = ARGS.swap(0, Ordering::Relaxed);
27
- if args != 0 {
28
- drop(Box::<ArgsStore>::from_raw(args as _))
29
- }
30
-}
+pub unsafe fn cleanup() {}
31
32
pub fn args() -> Args {
33
let args = unsafe { (ARGS.load(Ordering::Relaxed) as *const ArgsStore).as_ref() };
0 commit comments