diff options
author | Luis Soares <luis.soares@sun.com> | 2010-07-06 23:41:59 +0100 |
---|---|---|
committer | Luis Soares <luis.soares@sun.com> | 2010-07-06 23:41:59 +0100 |
commit | 21387da7d936a691b111204a2a7887909950a215 (patch) | |
tree | 6edfcdc1c1ee39a6ba2bf4812c04e1cce3e2e16a /client/mysqlbinlog.cc | |
parent | 8950699284fecd8d98db7f560d1962134b7d1c50 (diff) | |
download | mariadb-git-21387da7d936a691b111204a2a7887909950a215.tar.gz |
BUG#54744: valgrind reports leak for mysqlbinlog
The server was not cleaning up 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_thread_end() before the
thread exits, which will also free pending dbug related allocated
blocks.
Diffstat (limited to 'client/mysqlbinlog.cc')
-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..879409515c2 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_thread_end(); exit(1); } |