1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug#45989 memory leak after explain encounters an error in the query

Memory allocated in TMP_TABLE_PARAM::copy_field is not cleaned up.
The fix is to clean up TMP_TABLE_PARAM::copy_field array in JOIN::destroy.
This commit is contained in:
Sergey Glukhov
2009-09-04 12:20:53 +05:00
parent eebffb422b
commit e1d49b8143
3 changed files with 20 additions and 1 deletions

View File

@@ -2176,7 +2176,7 @@ JOIN::destroy()
}
}
tmp_join->tmp_join= 0;
tmp_table_param.copy_field=0;
tmp_table_param.cleanup();
DBUG_RETURN(tmp_join->destroy());
}
cond_equal= 0;