On Tue, Aug 23, 2011 at 1:18 PM, Wolfgang Denk <w...@denx.de> wrote:
> Dear Anton Staaf,
>
> In message 
> <caf6fiouorx50_6nekmc0myakf6rzwsbu9tonrc+4c2uwuh+...@mail.gmail.com> you 
> wrote:
>>
>> > and what do you do when there is no memory left in the malloc arena because
>> > you leaked it all and so can't service any new read requests ?
>>
>> I think you've miss-understood my patch.  The allocated buffer is
>> stored in a static variable.  So only the first time through is it
>> allocated.
>
> Strictly speaking, only the _pointer_to_ the allocated buffer is
> stored in a static variable. [I know you meant this, but we should try
> and be exact.]

Yes, absolutely.

Thanks,
    Anton

> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> You have the capacity to learn from  mistakes.  You'll  learn  a  lot
> today.
>
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to