Skip to content

Commit

Permalink
ioc: avoid *NULL on exit when partially initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jun 27, 2023
1 parent d05cf34 commit e519545
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ioc/group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ IOCGroupConfig& IOCGroupConfig::instance()

void IOCGroupConfigCleanup()
{
epicsGuard<epicsMutex> G(configInstance->groupMapMutex);
configInstance->groupMap.clear();
configInstance->groupConfigFiles.clear();
if(configInstance) {
epicsGuard<epicsMutex> G(configInstance->groupMapMutex);
configInstance->groupMap.clear();
configInstance->groupConfigFiles.clear();
}
}

/**
Expand Down

0 comments on commit e519545

Please sign in to comment.