@@ -2279,9 +2279,10 @@ static void free_decompression_temps(HFDI hfdi, const struct fdi_folder *fol,
2279
2279
}
2280
2280
}
2281
2281
2282
- static void free_decompression_mem (HFDI hfdi , struct fdi_folder * fol ,
2282
+ static void free_decompression_mem (HFDI hfdi ,
2283
2283
fdi_decomp_state * decomp_state , struct fdi_file * file )
2284
2284
{
2285
+ struct fdi_folder * fol ;
2285
2286
while (decomp_state ) {
2286
2287
fdi_decomp_state * prev_fds ;
2287
2288
@@ -2896,17 +2897,17 @@ BOOL __cdecl FDICopy(
2896
2897
}
2897
2898
2898
2899
free_decompression_temps (hfdi , fol , decomp_state );
2899
- free_decompression_mem (hfdi , fol , decomp_state , file );
2900
+ free_decompression_mem (hfdi , decomp_state , file );
2900
2901
2901
2902
return TRUE;
2902
2903
2903
2904
bail_and_fail : /* here we free ram before error returns */
2904
2905
2905
- free_decompression_temps (hfdi , fol , decomp_state );
2906
+ if ( fol ) free_decompression_temps (hfdi , fol , decomp_state );
2906
2907
2907
2908
if (filehf ) PFDI_CLOSE (hfdi , filehf );
2908
2909
2909
- free_decompression_mem (hfdi , fol , decomp_state , file );
2910
+ free_decompression_mem (hfdi , decomp_state , file );
2910
2911
2911
2912
return FALSE;
2912
2913
}
0 commit comments