[delphizip] Memory leak in Inflate.c in Unzip.dll

  • From: "Roger Aelbrecht" <Roger.Aelbrecht@xxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Wed, 7 May 2003 20:34:22 +0200

I used the code of Inflate.c in TZipBuilderSFX component.

During test of this component CodeGuard reported
a memory leak of memory blocs created with malloc
in the function 'huft_build(..)' called from inflate_fixed.

After adding :

huft_free(fixed_tl);
huft_free(fixed_td);

at the end of the function inflate_fixed
just after 

inflate_codes(fixed_tl, fixed_td, fixed_bl, fixed_bd);

CodeGuard did not report any errors

HTH


Roger Aelbrecht
http://web.wanadoo.be/driehoeksw
-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: