]> git.sur5r.net Git - openocd/commit
helper/fileio: Fix memory leak.
authorMarc Schink <openocd-dev@marcschink.de>
Fri, 2 Oct 2015 15:12:17 +0000 (17:12 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Tue, 3 Nov 2015 22:15:31 +0000 (22:15 +0000)
commit627f1cb3542408533158dc5682b468ef48614eb8
tree3508e482ecb82470bd48e47b519c9adc2b8c6628
parent24d9f0cfa0ee84e927d84957cab22c6571fa3185
helper/fileio: Fix memory leak.

The memory leak occurs when opening a file fails. It can be
reproduced by using the "flash verify_bank" command with a filename
that does not exist.

Change-Id: I60b7b545c18793d750ff75d08124fde3f0aa6f64
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/2998
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/helper/fileio.c