diff --git a/modules/es/fsw/src/cfe_es_apps.c b/modules/es/fsw/src/cfe_es_apps.c index f4f2101ff..91be157b8 100644 --- a/modules/es/fsw/src/cfe_es_apps.c +++ b/modules/es/fsw/src/cfe_es_apps.c @@ -799,6 +799,10 @@ int32 CFE_ES_AppCreate(CFE_ES_AppId_t *ApplicationIdPtr, const char *AppName, co /* * Set the table entry back to free */ + if (OS_ObjectIdDefined(AppRecPtr->LoadStatus.ModuleId)) { + OS_ModuleUnload(AppRecPtr->LoadStatus.ModuleId); + } + CFE_ES_AppRecordSetFree(AppRecPtr); PendingResourceId = CFE_RESOURCEID_UNDEFINED; }