diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-03 17:39:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-03 17:39:54 +0000 |
commit | 2fe37bef25b42871de4925ca36dc855d4a9af964 (patch) | |
tree | b0630d48923086d901713dbbaa02d3521c6cc52f /nuttx/sched/group_leave.c | |
parent | 32dde889e28f1e15c4a97f3e701800ba22ab849d (diff) | |
download | px4-nuttx-2fe37bef25b42871de4925ca36dc855d4a9af964.tar.gz px4-nuttx-2fe37bef25b42871de4925ca36dc855d4a9af964.tar.bz2 px4-nuttx-2fe37bef25b42871de4925ca36dc855d4a9af964.zip |
Now that join info is in the task group, need to free when task group exits. Used to be stranded
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5603 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/group_leave.c')
-rw-r--r-- | nuttx/sched/group_leave.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/group_leave.c b/nuttx/sched/group_leave.c index d87420d1c..1373a25a2 100644 --- a/nuttx/sched/group_leave.c +++ b/nuttx/sched/group_leave.c @@ -154,10 +154,10 @@ static inline void group_release(FAR struct task_group_s *group) group_removechildren(group); #endif - /* Free pthread join data */ - #ifndef CONFIG_DISABLE_PTHREAD - (void)sem_destroy(&group->tg_joinsem); + /* Release pthread resources */ + + pthread_release(group); #endif /* Free all file-related resources now. We really need to close files as |