Page MenuHomeFreeBSD

D55826.id173609.diff
No OneTemporary

D55826.id173609.diff

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

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)

Event Timeline