[flashrom] [PATCH] Fix flashrom memory leaks
ron minnich
rminnich at gmail.com
Sat Sep 19 20:45:40 CEST 2009
On Sat, Sep 19, 2009 at 4:13 AM, Maciej Pijanka
<maciej.pijanka at gmail.com> wrote:
> if xalloc will be done as macro then its possible to use __LINE__ and
> __FILE__ values to show from where xalloc was called
>
> #declare xalloc(a,b) xalloc(a,b,__FILE__, __LINE__)
that's fine too. The main thing is that when an allocate fails you
want as much information as possible, esp. if you are going to report
a bug :-)
Also, sometimes, seeing that it tried to allocate 981340981732871234
bytes can help :-)
ron
More information about the flashrom
mailing list