Skip to content

Commit

Permalink
Free the Float stack to prevent a leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
philburk committed Dec 27, 2024
1 parent 4fafc5c commit 1f7a652
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions csrc/pf_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ static void pfTerm( void )
void pfDeleteTask( PForthTask task )
{
pfTaskData_t *cftd = (pfTaskData_t *)task;
#ifdef PF_SUPPORT_FP
FREE_VAR( cftd->td_FloatStackLimit );
#endif
FREE_VAR( cftd->td_ReturnLimit );
FREE_VAR( cftd->td_StackLimit );
pfFreeMem( cftd );
Expand Down

0 comments on commit 1f7a652

Please sign in to comment.