1
Fork 0

Remove args cleanup code.

As of 91c3eee173, the global ARGC and ARGV
no longer reference dynamically-allocated memory, so they don't need to
be cleaned up.
This commit is contained in:
Dan Gohman 2021-07-17 05:47:39 -07:00
parent 64d171b8a4
commit 46010c4618
2 changed files with 0 additions and 14 deletions

View file

@ -123,7 +123,6 @@ pub unsafe fn init(argc: isize, argv: *const *const u8) {
// SAFETY: must be called only once during runtime cleanup.
// NOTE: this is not guaranteed to run, for example when the program aborts.
pub unsafe fn cleanup() {
args::cleanup();
stack_overflow::cleanup();
}