diff options
author | unknown <msvensson@neptunus.(none)> | 2006-05-08 17:14:06 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-05-08 17:14:06 +0200 |
commit | bc324937327f480e0dff314480884aea8397869d (patch) | |
tree | 6f4ee6d9633aea38f1767615f02b4dbdfe74c49f /vio/vio.c | |
parent | c593d1f1cac06e9e8a549febaa13d72f90eec4f4 (diff) | |
download | mariadb-git-bc324937327f480e0dff314480884aea8397869d.tar.gz |
Remove valgrind and compiler warnings
Add function 'vio_end' that will cleanup resources allocated by vio and the components it uses.
include/violite.h:
Import patch warnings.patch
libmysql/libmysql.c:
Import patch warnings.patch
sql/mysqld.cc:
Import patch warnings.patch
vio/test-ssl.c:
Import patch warnings.patch
vio/test-sslclient.c:
Import patch warnings.patch
vio/test-sslserver.c:
Import patch warnings.patch
vio/vio.c:
Import patch warnings.patch
vio/viosslfactories.c:
Import patch warnings.patch
Diffstat (limited to 'vio/vio.c')
-rw-r--r-- | vio/vio.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vio/vio.c b/vio/vio.c index 21a824a4016..2b0a7f0d79b 100644 --- a/vio/vio.c +++ b/vio/vio.c @@ -233,3 +233,16 @@ void vio_delete(Vio* vio) my_free((gptr) vio,MYF(0)); } } + + +/* + Cleanup memory allocated by vio or the + components below it when application finish + +*/ +void vio_end(void) +{ +#ifdef HAVE_YASSL + yaSSL_CleanUp(); +#endif +} |