From 1416f4e22598ea2a2b40cf3255a2a0076df9ba6e Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 23 Apr 2024 21:13:37 +0200 Subject: [PATCH] Fix issue --- m-list.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m-list.h b/m-list.h index 3e305a57..c5d5d675 100644 --- a/m-list.h +++ b/m-list.h @@ -547,6 +547,7 @@ update_list = list; \ it_org = *org; \ /* On exceptions, free node and clear list*/ \ + M_IF_EXCEPTION(*update_list = NULL); \ M_ON_EXCEPTION(M_C3(m_l1st_,name,_del)(next), M_F(name, _clear)(list) ) \ while (it_org != NULL) { \ next = M_C3(m_l1st_,name,_new)(); \ @@ -1389,6 +1390,7 @@ M_F(name, _reset)(list); \ update_list = &list->back; \ it_org = org->back; \ + M_ASSERT(*update_list == NULL); \ M_ON_EXCEPTION(M_C3(m_l1st_,name,_del)(next) ) \ while (it_org != NULL) { \ next = M_C3(m_l1st_,name,_new)(); \