Skip to content

Commit 2501a10

Browse files
authored
Rollup merge of #69068 - Goirad:make-sgx-arg-cleanup-nop, r=jethrogb,nagisa
Make the SGX arg cleanup implementation a NOP fixes #64304 cc @jethrogb
2 parents a50a896 + 1f6fb33 commit 2501a10

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/libstd/sys/sgx/args.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
2222
}
2323
}
2424

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-
}
25+
pub unsafe fn cleanup() {}
3126

3227
pub fn args() -> Args {
3328
let args = unsafe { (ARGS.load(Ordering::Relaxed) as *const ArgsStore).as_ref() };

0 commit comments

Comments
 (0)