mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
Fix important task shutdown bugs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@750 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ void lib_releaselist(FAR struct streamlist *list)
|
||||
(void)sem_destroy(&list->sl_streams[i].fs_sem);
|
||||
|
||||
/* Release the IO buffer */
|
||||
if (&list->sl_streams[i].fs_bufstart)
|
||||
if (list->sl_streams[i].fs_bufstart)
|
||||
{
|
||||
sched_free(list->sl_streams[i].fs_bufstart);
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ static void timer_free(struct posix_timer_s *timer)
|
||||
#if CONFIG_PREALLOC_TIMERS > 0
|
||||
if ((timer->pt_flags & PT_FLAGS_PREALLOCATED) != 0)
|
||||
{
|
||||
sq_addlast((FAR sq_entry_t*)&timer, (FAR sq_queue_t*)&g_freetimers);
|
||||
sq_addlast((FAR sq_entry_t*)timer, (FAR sq_queue_t*)&g_freetimers);
|
||||
irqrestore(flags);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user