diff options
author | Luis Soares <luis.soares@sun.com> | 2010-07-08 23:40:48 +0100 |
---|---|---|
committer | Luis Soares <luis.soares@sun.com> | 2010-07-08 23:40:48 +0100 |
commit | f4f8de20ada9e021d857c8e17e96fa6c5a0693b1 (patch) | |
tree | 1457f65145c83aad7de49bffa7c9459059f6909d | |
parent | d4cd1f843da60019664dfad2b0ad6987f82f01c6 (diff) | |
download | mariadb-git-f4f8de20ada9e021d857c8e17e96fa6c5a0693b1.tar.gz |
BUG#54744: valgrind reports leak for mysqlbinlog
The server was not cleaning up some dbug allocated memory
before exiting. This is not a real problem, as this memory
would be deallocated anyway. Nonetheless, we improve the
mysqlbinlog exit procedure, wrt to memory book-keeping, when
no parameter is given.
To fix this, we deploy a call to my_end() before the
thread exits.
-rw-r--r-- | client/mysqlbinlog.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index 9d85e24d03f..971442e6d60 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -2032,6 +2032,7 @@ int main(int argc, char** argv) { usage(); free_defaults(defaults_argv); + my_end(my_end_arg); exit(1); } |