From 215138abcf29dd99fa4916c442a4626d3550777a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 27 Feb 2016 16:22:37 +0000 Subject: Enhanced .ld files. Mass update of shell demos. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8963 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testhal/STM32/STM32F4xx/USB_CDC_IAD') diff --git a/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c b/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c index 84c7ec3fc..3b768f331 100644 --- a/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c +++ b/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c @@ -176,11 +176,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; } } -- cgit v1.2.3