diff options
Diffstat (limited to 'src/rtos/embKernel.c')
-rw-r--r-- | src/rtos/embKernel.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/rtos/embKernel.c b/src/rtos/embKernel.c index f605deb3..76c0bd23 100644 --- a/src/rtos/embKernel.c +++ b/src/rtos/embKernel.c @@ -206,25 +206,7 @@ static int embKernel_update_threads(struct rtos *rtos) } /* wipe out previous thread details if any */ - if (rtos->thread_details != NULL) { - int j; - for (j = 0; j < rtos->thread_count; j++) { - if (rtos->thread_details[j].display_str != NULL) { - free(rtos->thread_details[j].display_str); - rtos->thread_details[j].display_str = NULL; - } - if (rtos->thread_details[j].thread_name_str != NULL) { - free(rtos->thread_details[j].thread_name_str); - rtos->thread_details[j].thread_name_str = NULL; - } - if (rtos->thread_details[j].extra_info_str != NULL) { - free(rtos->thread_details[j].extra_info_str); - rtos->thread_details[j].extra_info_str = NULL; - } - } - free(rtos->thread_details); - rtos->thread_details = NULL; - } + rtos_free_threadlist(rtos); param = (const struct embKernel_params *) rtos->rtos_specific_params; |