diff options
author | unknown <ingo@mysql.com> | 2005-01-26 22:31:42 +0100 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-01-26 22:31:42 +0100 |
commit | f50a65b0f18f47bcc105168d686a3b0c507ea3e0 (patch) | |
tree | 368f5aef35bbb63eba1822867bc56cdc3e4aba37 /sql/examples | |
parent | bf6b46bba9177fbe1365ee3d9ed95707489f208a (diff) | |
download | mariadb-git-f50a65b0f18f47bcc105168d686a3b0c507ea3e0.tar.gz |
Test bug: Memory leak in archive handler.
Added a call to close the meta file after a repair.
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc index f0d0f617a5d..436c72702a0 100644 --- a/sql/examples/ha_archive.cc +++ b/sql/examples/ha_archive.cc @@ -810,6 +810,7 @@ int ha_archive::repair(THD* thd, HA_CHECK_OPT* check_opt) goto error; } (void)write_meta_file(meta_file, rows_recorded, TRUE); + my_close(meta_file,MYF(0)); rc= 0; } |