flash/nor/mdr: add docs, remove memory leak on probe()
commit03b72c367c327b4e0510fa65c9664fd62d3ca6af
authorPaul Fertser <fercerpav@gmail.com>
Sat, 4 Apr 2015 08:08:15 +0000 (4 11:08 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Thu, 16 Apr 2015 19:29:06 +0000 (16 20:29 +0100)
treee386cdfd816c0f52c8f123553b17aedf732df26a
parent14040c7a57320fd62386e2bbb16cd88044eb282a
flash/nor/mdr: add docs, remove memory leak on probe()

This adds the mandatory Info documentation for the driver as well as
the usage field.

As a clean up, this also includes freeing of the allocated memory
which results in a memory leak if probe is invoked multiple times.

Valgrind-tested.

Reported by Dmitry Shpak.

Change-Id: I2b1d9b9e8b069c6665b11d880b40ce19a1b26ce6
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2694
Tested-by: jenkins
Reviewed-by: Дмитрий Шпак <disona@yandex.ru>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
doc/openocd.texi
src/flash/nor/mdr.c