Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157891699
D55826.id173609.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.id173609.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
Wed, May 27, 5:44 AM (9 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29627441
Default Alt Text
D55826.id173609.diff (512 B)
Attached To
Mode
D55826: libc: Fix dtor order in __cxa_thread_atexit
Attached
Detach File
Event Timeline
Log In to Comment