From 0855b209bff9752cf1d537ba734847dd46fbd622 Mon Sep 17 00:00:00 2001 From: Matthieu Dorier Date: Tue, 3 Sep 2024 09:56:53 +0100 Subject: [PATCH] top_finalize and top_prefinalize should not pop the callback --- src/margo-core.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/margo-core.c b/src/margo-core.c index fa25b68..1fc3935 100644 --- a/src/margo-core.c +++ b/src/margo-core.c @@ -395,11 +395,6 @@ int margo_provider_top_prefinalize_callback(margo_instance_id mid, fcb = fcb->next; } if (fcb == NULL) return 0; - if (prev == NULL) { - mid->prefinalize_cb = fcb->next; - } else { - prev->next = fcb->next; - } if (cb) *cb = fcb->callback; if (uargs) *uargs = fcb->uargs; return 1; @@ -492,11 +487,6 @@ int margo_provider_top_finalize_callback(margo_instance_id mid, fcb = fcb->next; } if (fcb == NULL) return 0; - if (prev == NULL) { - mid->finalize_cb = fcb->next; - } else { - prev->next = fcb->next; - } if (cb) *cb = fcb->callback; if (uargs) *uargs = fcb->uargs; return 1;