atexit() isn't really appropriate for a library.
[oweals/opkg-lede.git] / libopkg / libopkg.c
index c73c4a3358ed902b1a25279f13a41356442cf8bb..37770eb880f3b11757d1dd67ac31174b2f0c2992 100644 (file)
@@ -96,6 +96,9 @@ opkg_op (int argc, char *argv[])
 
        err = opkg_cmd_exec (cmd, &opkg_conf, argc - optind, (const char **) (argv + optind), NULL);
 
+#ifdef HAVE_CURL
+       opkg_curl_cleanup();
+#endif
        opkg_conf_deinit (&opkg_conf);
 
        return err;