From: Mazet Laurent Date: Tue, 8 Apr 2025 00:46:25 +0000 (+0200) Subject: clean close message X-Git-Tag: v1.0~63 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=4bf11b6a707a7dd4d1ce386c8c7cb486ee8f781e;p=morep.git clean close message --- diff --git a/morep.c b/morep.c index b154deb..eb7b1ac 100644 --- a/morep.c +++ b/morep.c @@ -100,9 +100,10 @@ void free_all_moreps (void) int i; for (i = 0; i < MAX_MOREP_NUMBER; i++) { - MOREP_Close (i); - if (MOREP_list[i]) { + if (MOREP_list[i]->used) { + MOREP_Close (i); + } free (MOREP_list[i]->tx_buffer); free (MOREP_list[i]->rx_buffer); }