We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1c88e5 + 8776e1b commit af14bafCopy full SHA for af14baf
storage/ndb/src/common/mgmcommon/ConfigObject.cpp
@@ -108,6 +108,7 @@ ConfigObject *ConfigObject::copy_current(ConfigSection *curr_section) const {
108
if (new_cs == nullptr) {
109
DEB_MALLOC(("delete(%u) => %p", __LINE__, new_co));
110
delete new_co;
111
+ return nullptr;
112
}
113
new_co->m_cfg_sections.push_back(new_cs);
114
new_co->m_num_sections = 1;
@@ -164,6 +165,8 @@ ConfigObject *ConfigObject::copy_current(ConfigSection *curr_section) const {
164
165
break;
166
167
default: {
168
+ DEB_MALLOC(("delete(%u) => %p", __LINE__, new_co));
169
+ delete new_co;
170
return nullptr;
171
172
0 commit comments