openocd/src/helper
Marc Schink 627f1cb354 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>
2015-11-03 22:15:31 +00:00
..
bin2char.sh Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00
binarybuffer.c helper: constify log_strings 2014-10-06 11:57:44 +00:00
binarybuffer.h Use (uint8_t *) for buf_(set|get)_u(32|64) instead of (void *) 2015-01-30 08:56:54 +00:00
command.c Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
command.h Update to the current Jim Tcl 2014-05-09 20:12:17 +00:00
configuration.c Remove unnecessary casts 2013-10-31 20:43:27 +00:00
configuration.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
fileio.c helper/fileio: Fix memory leak. 2015-11-03 22:15:31 +00:00
fileio.h helper/fileio: Use size_t for file size. 2015-11-03 22:14:07 +00:00
ioutil_stubs.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
ioutil.c ioutil: Remove unnecessary casts and fix const-discarding 2013-10-31 20:45:34 +00:00
ioutil.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
jim-nvp.c build: cleanup src/helper directory 2012-02-06 10:49:52 +00:00
jim-nvp.h build: cleanup src/helper directory 2012-02-06 10:49:52 +00:00
list.h Add a bit-level transfer queue 2012-07-06 14:58:25 +00:00
log.c helper: constify log_strings 2014-10-06 11:57:44 +00:00
log.h stlink_usb: Fix swallowed error on read/write operations, add retries on SWD WAIT, clean up error debug output. 2014-08-11 22:34:52 +00:00
Makefile.am Provide od+sed replacement for the bin2char helper 2014-08-02 09:00:28 +00:00
options.c Removed limit on lenght of command line options. 2014-08-12 21:04:27 +00:00
replacements.c Don't cast return value of [cm]alloc 2014-03-30 03:53:45 +00:00
replacements.h configure: define WIN32_LEAN_AND_MEAN early to make it effective 2015-02-04 21:56:55 +00:00
startup.tcl Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
system.h Change from sys/poll.h to standard poll.h location 2015-11-03 21:38:58 +00:00
time_support_common.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
time_support.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
time_support.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
types.h swd: Improve parity calculation and move it to types.h 2014-06-28 09:27:19 +00:00
util.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
util.h update files to correct FSF address 2013-06-05 19:52:42 +00:00