mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Bug#15976: Multiply warnings about unfreed memory
leaks caused by Archive storage engine not closing files and storage engines not receiving panic() during shutdown sql/ha_archive.cc: surplus my_close() call not neccessary as azclose() should work sql/mysqld.cc: Make sure storage engines get panic() call by moving it before plugin_free() storage/archive/azio.c: typo perhaps. azio was not closing files.
This commit is contained in:
parent
81ca15813b
commit
4019cbf602
3 changed files with 2 additions and 4 deletions
|
|
@ -267,7 +267,7 @@ int destroy (s)
|
|||
err = inflateEnd(&(s->stream));
|
||||
}
|
||||
}
|
||||
if (s->file < 0 && my_close(s->file, MYF(0)))
|
||||
if (s->file > 0 && my_close(s->file, MYF(0)))
|
||||
{
|
||||
#ifdef ESPIPE
|
||||
if (errno != ESPIPE) /* fclose is broken for pipes in HP/UX */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue