diff options
author | msvensson@neptunus.(none) <> | 2006-05-08 17:14:06 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2006-05-08 17:14:06 +0200 |
commit | b60540a86272859489bcd6255355116771210f3b (patch) | |
tree | 6f4ee6d9633aea38f1767615f02b4dbdfe74c49f /vio/vio.c | |
parent | 405d08be719e75aec9ca5dd3edf50755cd11d8c2 (diff) | |
download | mariadb-git-b60540a86272859489bcd6255355116771210f3b.tar.gz |
Remove valgrind and compiler warnings
Add function 'vio_end' that will cleanup resources allocated by vio and the components it uses.
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 +} |