diff --git a/README.md b/README.md index 0164775..768b63f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ This sample application is a non-flight example application implementation for t sample_app is an example for how to build and link an application in cFS. ## Version Notes - +- 1.1.7 + - Fix bug where table is not released after being used + - Minor updates (see https://github.com/nasa/sample_app/pull/48) - 1.1.6 - Minor updates (see https://github.com/nasa/sample_app/pull/49) - 1.1.5 diff --git a/fsw/src/sample_app.c b/fsw/src/sample_app.c index 11fa6d1..82e51e1 100644 --- a/fsw/src/sample_app.c +++ b/fsw/src/sample_app.c @@ -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 status; + } + /* Invoke a function provided by SAMPLE_LIB */ SAMPLE_Function(); diff --git a/fsw/src/sample_app_version.h b/fsw/src/sample_app_version.h index d603083..cb30f66 100644 --- a/fsw/src/sample_app_version.h +++ b/fsw/src/sample_app_version.h @@ -33,7 +33,7 @@ #define SAMPLE_APP_MAJOR_VERSION 1 #define SAMPLE_APP_MINOR_VERSION 1 -#define SAMPLE_APP_REVISION 6 +#define SAMPLE_APP_REVISION 7 #define SAMPLE_APP_MISSION_REV 0