... to release resources allocated at global scope
config->metalinkfile_last = 0;
}
+void metalink_cleanup(void)
+{
+}
+
#endif /* USE_METALINK */
metalinkfile *mlfile,
const char *filename);
+/*
+ * Release resources allocated at global scope.
+ */
+void metalink_cleanup(void);
+
#else /* USE_METALINK */
#define count_next_metalink_resource(x) 0
#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 */
/*
{
curl_global_cleanup();
convert_cleanup();
+#ifdef USE_METALINK
+ metalink_cleanup();
+#endif
}
#ifdef CURLDEBUG