]> git.sur5r.net Git - openocd/commitdiff
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)
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

No differences found