Skip to content

Commit d4da5ac

Browse files
author
deadwood
committed
Increase priority of close function to guarantee free() working
At priority 0, C memory management is shutdown.
1 parent 7e33c68 commit d4da5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/posixc/random.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static void free_random_state(struct CrtIntBase *CrtBase)
210210
}
211211
}
212212

213-
ADD2CLOSELIB(free_random_state, 0)
213+
ADD2CLOSELIB(free_random_state, 2)
214214

215215

216216
/*

0 commit comments

Comments
 (0)