summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/src/thread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1995-09-19 21:43:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1995-09-19 21:43:45 +0000
commitd434b8d68677389e18e8b674a627a0d29ac4cc51 (patch)
treebf9505dbc01970a378eda0416a964b316deca019 /c/src/exec/score/src/thread.c
parentModifications from Tony Bennett accepted to return aligned block. (diff)
downloadrtems-d434b8d68677389e18e8b674a627a0d29ac4cc51.tar.bz2
Modifications from Tony Bennett accepted to return aligned block.
Thread_Close fixed to avoid returning FP context area when one was not allocated at initialization time.
Diffstat (limited to 'c/src/exec/score/src/thread.c')
-rw-r--r--c/src/exec/score/src/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/score/src/thread.c b/c/src/exec/score/src/thread.c
index 3f58c8ef12..a380d76c44 100644
--- a/c/src/exec/score/src/thread.c
+++ b/c/src/exec/score/src/thread.c
@@ -464,6 +464,7 @@ void _Thread_Close(
#endif
the_thread->fp_context = NULL;
+ if ( the_thread->Start.fp_context )
(void) _Workspace_Free( the_thread->Start.fp_context );
if ( the_thread->Start.stack )