Near as I can tell the correct fix here is to fix broken implementations
of init() to clean up when it fails.

quit() is not and should not be invoked when init() fails, this parallels
malloc() + free(). Don't invoke free when malloc fails.

I've posted a patch to clarify jtag->init() and jtag->quit().

Hope this helps!




-- 
Øyvind Harboe

Can Zylin Consulting help on your project?

US toll free 1-866-980-3434 / International +47 51 87 40 27

http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to