This commit is contained in:
twinaphex 2016-01-25 01:18:49 +01:00
parent 0c87b100ea
commit 545501afa0

View File

@ -240,8 +240,6 @@ static struct string_list *compressed_7zip_file_list_new(
CSzArEx db;
ISzAlloc allocImp;
ISzAlloc allocTempImp;
uint16_t *temp = NULL;
size_t temp_size = 0;
struct string_list *list = NULL;
/* These are the allocation routines - currently using
@ -275,6 +273,8 @@ static struct string_list *compressed_7zip_file_list_new(
if (SzArEx_Open(&db, &lookStream.s, &allocImp, &allocTempImp) == SZ_OK)
{
uint32_t i;
uint16_t *temp = NULL;
size_t temp_size = 0;
struct string_list *ext_list = ext ? string_split(ext, "|"): NULL;
SRes res = SZ_OK;
@ -332,6 +332,7 @@ static struct string_list *compressed_7zip_file_list_new(
}
string_list_free(ext_list);
free(temp);
if (res != SZ_OK)
{
@ -344,7 +345,6 @@ static struct string_list *compressed_7zip_file_list_new(
}
SzArEx_Free(&db, &allocImp);
free(temp);
File_Close(&archiveStream.file);
return list;