Displaying 2 results from an estimated 2 matches for "lzma_cleanup".
2013 Mar 15
0
[PATCH 4.1] Add DomU xz kernel decompression
..., what);
return -1;
}
@@ -220,22 +218,22 @@ static int xc_try_lzma_decode(
out_buf = malloc(outsize);
if ( out_buf == NULL )
{
- DOMPRINTF("LZMA: Failed to alloc memory");
+ DOMPRINTF("%s: Failed to alloc memory", what);
goto lzma_cleanup;
}
- stream.next_in = dom->kernel_blob;
- stream.avail_in = dom->kernel_size;
+ stream->next_in = dom->kernel_blob;
+ stream->avail_in = dom->kernel_size;
- stream.next_out = out_buf;
- stream.avail_out = dom->kernel_size;
+ stream->next_out = o...
2014 Nov 21
4
Bug#767295: [PATCH for-4.5 v2] libxc: don't leak buffer containing the uncompressed PV kernel
...zma_decode(
>> }
>> }
>>
>> + if ( xc_dom_register_external(dom, out_buf, stream->total_out) )
>> + {
>> + DOMPRINTF("%s: Error registering stream output", what);
>> + free(out_buf);
>> + goto lzma_cleanup;
>> + }
>> +
>> DOMPRINTF("%s: %s decompress OK, 0x%zx -> 0x%zx",
>> __FUNCTION__, what, *size, (size_t)stream->total_out);
>>
>> @@ -464,7 +478,13 @@ static int xc_try_lzo1x_decode(
>>
>> dst_l...