Free libmysqlclient memory before exit (mostly to make valgrind clean).