summaryrefslogtreecommitdiffstats
path: root/libopkg/libopkg.c
diff options
context:
space:
mode:
authorpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-10-29 05:07:11 (EDT)
committer pixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-10-29 05:07:11 (EDT)
commitbb61b4e2022bea1f8728d18dac18239ed6931826 (patch)
tree0df7ce48dc61847a15d2fa0b6d7d1c08fe8563f5 /libopkg/libopkg.c
parent26e659c660b69b5ecdd1bd6f6bf85520211b810e (diff)
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
Diffstat (limited to 'libopkg/libopkg.c')
-rw-r--r--libopkg/libopkg.c3
1 files changed, 1 insertions, 2 deletions
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