]> git.sur5r.net Git - openocd/commit
drivers/ftdi: free allocated memory
authorTomas Vanek <vanekt@fbl.cz>
Fri, 16 Feb 2018 08:13:36 +0000 (09:13 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 15 Mar 2018 17:10:16 +0000 (17:10 +0000)
commitff23980434b3be523853034c71e61662303aa742
tree47cf9afd781d28b566500c806fc5d2909be8e7f6
parent71f5f6eb14a1161875122d6b015b2f6fe2415b33
drivers/ftdi: free allocated memory

Also uses calloc() for mpsse_ctx->write_buffer to prevent a false
positive valgrind report
"Syscall param ioctl(USBDEVFS_SUBMITURB).buffer points to uninitialised bytes(s)"

Change-Id: I91963371d15c21ea0fee4c40c1da86174db44520
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4418
Tested-by: jenkins
src/jtag/drivers/ftdi.c
src/jtag/drivers/mpsse.c