From 4019cbf602f73a474f597914537eb91650c8573f Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 25 Dec 2005 03:29:49 -0800 Subject: 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. --- storage/archive/azio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage') diff --git a/storage/archive/azio.c b/storage/archive/azio.c index 303a12bf293..46152f4e39e 100644 --- a/storage/archive/azio.c +++ b/storage/archive/azio.c @@ -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 */ -- cgit v1.2.1