tool_metalink: introduce metalink_cleanup() in the internal API

... to release resources allocated at global scope
This commit is contained in:
Kamil Dudka
2012-10-31 10:43:36 +01:00
parent 0af1a9d270
commit cf75a64651
3 changed files with 17 additions and 0 deletions

View File

@@ -32,6 +32,11 @@
#include "tool_operhlp.h"
#include "tool_version.h"
#ifdef USE_METALINK
/* import the declaration of metalink_cleanup() */
# include "tool_metalink.h"
#endif
#include "memdebug.h" /* keep this as LAST include */
/*
@@ -215,6 +220,9 @@ void main_free(void)
{
curl_global_cleanup();
convert_cleanup();
#ifdef USE_METALINK
metalink_cleanup();
#endif
}
#ifdef CURLDEBUG