atexit() isn't really appropriate for a library.
[project/opkg-lede.git] / libopkg / opkg.c
index 785d58866076f5dbff64c67019ee67aa0a38744a..aea87fc4f5488768deab8a811c28ce59a6743cd6 100644 (file)
@@ -211,6 +211,9 @@ opkg_free (opkg_t *opkg)
 {
   opkg_assert (opkg != NULL);
 
+#ifdef HAVE_CURL
+  opkg_curl_cleanup();
+#endif
   opkg_conf_deinit (opkg->conf);
   args_deinit (opkg->args);
   free (opkg->options);