On 26/05/2010 05:45, Antonio Borneo wrote:
Almost all the implementations is ./src/flash/nor/ suffer from memory
leak when the command "flash probe #" is issued again.
The buffer for sectors[..] is reallocated  every time (this is
correct) but previous pointer is overwritten without freeing former
one (and this is wrong).
Moreover, most of malloc/calloc call are not tested for the return value.


Makes sense, probably not spotted sooner as most people will just use the autoprobe functionality.

I did notice this last week when writing the virtual driver - add to the todo list :)

Cheers
Spen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to