Skip to content

Commit af14baf

Browse files
committed
Merge branch 'mysql-8.4' into mysql-trunk
Change-Id: Ic0918fa53fbf261a01328ebfe72d822f7336765a
2 parents d1c88e5 + 8776e1b commit af14baf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/ndb/src/common/mgmcommon/ConfigObject.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ ConfigObject *ConfigObject::copy_current(ConfigSection *curr_section) const {
108108
if (new_cs == nullptr) {
109109
DEB_MALLOC(("delete(%u) => %p", __LINE__, new_co));
110110
delete new_co;
111+
return nullptr;
111112
}
112113
new_co->m_cfg_sections.push_back(new_cs);
113114
new_co->m_num_sections = 1;
@@ -164,6 +165,8 @@ ConfigObject *ConfigObject::copy_current(ConfigSection *curr_section) const {
164165
break;
165166
}
166167
default: {
168+
DEB_MALLOC(("delete(%u) => %p", __LINE__, new_co));
169+
delete new_co;
167170
return nullptr;
168171
}
169172
}

0 commit comments

Comments
 (0)