File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,17 +237,16 @@ sixel_decoder_decode(
237237 sixel_decoder_t /* in */ * decoder )
238238{
239239 SIXELSTATUS status = SIXEL_FALSE ;
240- unsigned char * raw_data ;
240+ unsigned char * raw_data = NULL ;
241241 int sx ;
242242 int sy ;
243243 int raw_len ;
244244 int max ;
245245 int n ;
246246 FILE * input_fp = NULL ;
247- unsigned char * indexed_pixels ;
248- unsigned char * palette ;
247+ unsigned char * indexed_pixels = NULL ;
248+ unsigned char * palette = NULL ;
249249 int ncolors ;
250- unsigned char * pixels = NULL ;
251250
252251 sixel_decoder_ref (decoder );
253252
@@ -327,7 +326,9 @@ sixel_decoder_decode(
327326 }
328327
329328end :
330- sixel_allocator_free (decoder -> allocator , pixels );
329+ sixel_allocator_free (decoder -> allocator , raw_data );
330+ sixel_allocator_free (decoder -> allocator , indexed_pixels );
331+ sixel_allocator_free (decoder -> allocator , palette );
331332 sixel_decoder_unref (decoder );
332333
333334 return status ;
You can’t perform that action at this time.
0 commit comments