Skip to content

Commit e45ac50

Browse files
committed
Bug#28703392 Fix memory leak in ndbinfo_sql.
Since ndbinfo_sql is needed during build, building with Address sanitizer fails. Change-Id: I8717380ec2155bf4be9f0778b7426163eaf9b977
1 parent c5bbe4f commit e45ac50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/ndb/tools/ndbinfo_sql.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,8 @@ int main(int argc, char** argv){
881881
print_conditional_sql(sql);
882882

883883
}
884+
delete[] tables;
885+
tables = NULL;
884886

885887
printf("# Recreate handler local lookup tables in %s\n", opt_ndbinfo_db);
886888
const char* prev_name = "";

0 commit comments

Comments
 (0)