Skip to content

Commit

Permalink
free(stack_for_task); free(taskTC); here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hoepfinger-hr-agrartechnik committed Jan 27, 2023
1 parent 4e9afd3 commit beae9ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/pthread/pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
ESP_LOGE(TAG, "Failed to create task!");
free(pthread);
free(task_arg);
free(stack_for_task);
free(taskTC);
return EAGAIN;
}
pthread->handle = xHandle;
Expand Down

0 comments on commit beae9ac

Please sign in to comment.