Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175246776
D55826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
512 B
Referenced Files
None
Subscribers
None
D55826.diff
View Options
diff --git a/lib/libc/stdlib/cxa_thread_atexit_impl.c b/lib/libc/stdlib/cxa_thread_atexit_impl.c
--- a/lib/libc/stdlib/cxa_thread_atexit_impl.c
+++ b/lib/libc/stdlib/cxa_thread_atexit_impl.c
@@ -119,9 +119,9 @@
static void
cxa_thread_walk(void (*cb)(struct cxa_thread_dtor *))
{
- struct cxa_thread_dtor *dtor, *tdtor;
+ struct cxa_thread_dtor *dtor;
- LIST_FOREACH_SAFE(dtor, &dtors, entry, tdtor) {
+ while ((dtor = LIST_FIRST(&dtors)) != NULL) {
LIST_REMOVE(dtor, entry);
cb(dtor);
free(dtor);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 10, 10:01 AM (13 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40493553
Default Alt Text
D55826.diff (512 B)
Attached To
Mode
D55826: libc: Fix dtor order in __cxa_thread_atexit
Attached
Detach File
Event Timeline
Log In to Comment