From bb61b4e2022bea1f8728d18dac18239ed6931826 Mon Sep 17 00:00:00 2001 From: pixdamix Date: Thu, 29 Oct 2009 05:07:11 -0400 Subject: Fix problems in error list push_error_list() should allocate the sizeof(struct) not sizeof(pointer to struct). And add some memory deallocation in error paths found while looking at this. git-svn-id: http://opkg.googlecode.com/svn/trunk@227 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/libopkg.c') 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 -- cgit v0.9.1