aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c')
-rw-r--r--testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c b/testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c
index f45c4611c..54d8008c6 100644
--- a/testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c
+++ b/testhal/STM32/STM32F3xx/USB_CDC_IAD/main.c
@@ -183,11 +183,11 @@ int main(void) {
/* Waiting for an exit event then freeing terminated shells.*/
chEvtWaitAny(EVENT_MASK(0));
if (chThdTerminatedX(shelltp1)) {
- chThdFreeToHeap(shelltp1);
+ chThdRelease(shelltp1);
shelltp1 = NULL;
}
if (chThdTerminatedX(shelltp2)) {
- chThdFreeToHeap(shelltp2);
+ chThdRelease(shelltp2);
shelltp2 = NULL;
}
}