Skip to content

Commit d87f7e6

Browse files
committed
Bug #26724559 NDB : VALGRIND : NDB_MODIFIERS LEAKS MEMORY
Fix error path leak. Refactoring to follow
1 parent 03c0ed6 commit d87f7e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/ha_ndbcluster.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9525,6 +9525,10 @@ NDB_Modifiers::parse(THD *thd,
95259525
}
95269526
my_error(ER_ILLEGAL_HA_CREATE_OPTION, MYF(0), ndbcluster_hton_name,
95279527
"Syntax error in COMMENT modifier");
9528+
if (source != _source)
9529+
{
9530+
delete [] source;
9531+
}
95289532
return -1;
95299533
}
95309534

0 commit comments

Comments
 (0)