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:
patacongo
2008-05-15 10:50:29 +00:00
parent 52ca776537
commit 4daf380c0c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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