Skip to content

Commit

Permalink
Fix #2615, Unloading module after failed app start
Browse files Browse the repository at this point in the history
  • Loading branch information
Tvisha Andharia committed Dec 2, 2024
1 parent f87ab0e commit e78f46f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/es/fsw/src/cfe_es_apps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e78f46f

Please sign in to comment.