Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/factory/ObjectConfigData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ void ObjectConfigData::destroyConfigService() {
delete _configProxy;
_configProxy = NULL;
}

if (_localSnapshotManager != NULL) {
delete _localSnapshotManager;
_localSnapshotManager = NULL;
}

}

void ObjectConfigData::destroyNamingService() {
Expand Down
6 changes: 6 additions & 0 deletions src/naming/beat/BeatReactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ bool BeatReactor::removeBeatInfo(const NacosString &serviceName, const NacosStri
beatTaskToRemove->setScheduled(false);
_beatInfoList.erase(beatKey);
}

if (beatTaskToRemove) {
delete beatTaskToRemove;
beatTaskToRemove = NULL;
}

//TODO:MetricsMonitor.getDom2BeatSizeMonitor().set(dom2Beat.size());

return true;
Expand Down