diff options
author | Kamil Dudka <kdudka@redhat.com> | 2012-10-31 10:43:36 +0100 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2012-11-09 10:27:10 +0100 |
commit | cf75a64651e927eb00d6cfe2434d8893985a865f (patch) | |
tree | d6a26ecc69df0e565ff0831178b98816025ae380 /src/tool_operhlp.c | |
parent | 0af1a9d270b982fda4bc62d72d9c1063a6d6f875 (diff) | |
download | curl-cf75a64651e927eb00d6cfe2434d8893985a865f.tar.gz |
tool_metalink: introduce metalink_cleanup() in the internal API
... to release resources allocated at global scope
Diffstat (limited to 'src/tool_operhlp.c')
-rw-r--r-- | src/tool_operhlp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tool_operhlp.c b/src/tool_operhlp.c index e45f102f5..9078b9564 100644 --- a/src/tool_operhlp.c +++ b/src/tool_operhlp.c @@ -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 |