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

  • From: "R. Peters" <russellpeters@xxxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Thu, 8 May 2003 08:32:56 +1000

I think that they may be freed in another module probably when Global is
cleaned up but will have to check.
- Russell Peters
----- Original Message ----- 
From: "Roger Aelbrecht" <Roger.Aelbrecht@xxxxxxxxxx>
To: <delphizip@xxxxxxxxxxxxx>
Sent: Thursday, May 08, 2003 4:34 AM
Subject: [delphizip] Memory leak in Inflate.c in Unzip.dll


>
> 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.
>


-----------
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: