atexit() isn't really appropriate for a library.
[oweals/opkg-lede.git] / libopkg / libopkg.c
index 07de2c655913f8d6e04dc744aa6a4c26df848f96..37770eb880f3b11757d1dd67ac31174b2f0c2992 100644 (file)
@@ -65,7 +65,6 @@ opkg_op (int argc, char *argv[])
              !strcmp(cmd_name,"compare_versions") ||
              !strcmp(cmd_name,"compare-versions") ||
              !strcmp(cmd_name,"list_installed") ||
-             !strcmp(cmd_name,"list-installed") ||
              !strcmp(cmd_name,"status") )
            args.noreadfeedsfile = 1;
 
@@ -97,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;