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/opkg_utils.h') diff --git a/libopkg/opkg_utils.h b/libopkg/opkg_utils.h index 226c7d1..ed9215b 100644 --- a/libopkg/opkg_utils.h +++ b/libopkg/opkg_utils.h @@ -23,7 +23,7 @@ void push_error_list(struct errlist **errors,char * msg); void reverse_error_list(struct errlist **errors); -void free_error_list(); +void free_error_list(struct errlist **errors); long unsigned int get_available_blocks(char * filesystem); char **read_raw_pkgs_from_file(const char *file_name); -- cgit v0.9.1