Commit f50a65b0 authored by unknown's avatar unknown

Test bug: Memory leak in archive handler.

Added a call to close the meta file after a repair.

parent bf6b46bb
...@@ -810,6 +810,7 @@ int ha_archive::repair(THD* thd, HA_CHECK_OPT* check_opt) ...@@ -810,6 +810,7 @@ int ha_archive::repair(THD* thd, HA_CHECK_OPT* check_opt)
goto error; goto error;
} }
(void)write_meta_file(meta_file, rows_recorded, TRUE); (void)write_meta_file(meta_file, rows_recorded, TRUE);
my_close(meta_file,MYF(0));
rc= 0; rc= 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment