Soft'N'Design Software
/
projects
/
morep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e650720
)
clean close message
author
Mazet Laurent
<laurent.mazet@thalesgroup.com>
Tue, 8 Apr 2025 00:46:25 +0000
(
02:46
+0200)
committer
Mazet Laurent
<laurent.mazet@thalesgroup.com>
Tue, 8 Apr 2025 00:46:25 +0000
(
02:46
+0200)
morep.c
patch
|
blob
|
blame
|
history
diff --git
a/morep.c
b/morep.c
index b154deb42cbde26b7f79f27ccae2e59a3ba04e7a..eb7b1ac5c4de7704649897489f0f808fc830adba 100644
(file)
--- 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);
}