X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=libopkg%2Flibopkg.c;h=418a32485624c7f88de27bb6a1dedf241cf6e47b;hp=552ee20eb3400e6d2be54bf1e5eecd61a43bf9e2;hb=bb61b4e2022bea1f8728d18dac18239ed6931826;hpb=26e659c660b69b5ecdd1bd6f6bf85520211b810e diff --git a/libopkg/libopkg.c b/libopkg/libopkg.c index 552ee20..418a324 100644 --- a/libopkg/libopkg.c +++ b/libopkg/libopkg.c @@ -128,14 +128,13 @@ opkg_op (int argc, char *argv[]) err = opkg_conf_init (&opkg_conf, &args); + args_deinit (&args); if (err) { opkg_print_error_list (&opkg_conf); return err; } - args_deinit (&args); - if ( strcmp(cmd_name, "files")==0) opkg_cb_list = default_opkg_files_callback; else