Skip to content

Commit

Permalink
Fix #19, Release table address
Browse files Browse the repository at this point in the history
Add CFE_TBL_ReleaseAddress after access of table data.
  • Loading branch information
anh authored and Gerardo E. Cruz-Ortiz committed Apr 3, 2020
1 parent 602aabe commit 7bf9876
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,14 @@ int32 SAMPLE_Process( const SAMPLE_Process_t *Msg )

SAMPLE_GetCrc(TableName);

status = CFE_TBL_ReleaseAddress(Sample_AppData.TblHandles[0]);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("Sample App: Fail to release table address: 0x%08lx",
(unsigned long)status);
return;
}

/* Invoke a function provided by SAMPLE_LIB */
SAMPLE_Function();

Expand Down

0 comments on commit 7bf9876

Please sign in to comment.