]> sigrok.org Git - libsigrok.git/commit
ftdi-la: Properly cleanup in scan_all()
authorLars-Peter Clausen <redacted>
Fri, 29 Apr 2016 16:07:54 +0000 (18:07 +0200)
committerLars-Peter Clausen <redacted>
Tue, 3 May 2016 19:22:38 +0000 (21:22 +0200)
commit7b6072d3546ebec08f4bc7861d985c667c55e02f
tree69e985e3ab4789583d62cf4a22ea8432d375188f
parent61c908589828b11352b5d792c4278964e1220a59
ftdi-la: Properly cleanup in scan_all()

Make sure to free the FTDI device list and the FTDI context in scan_all()
otherwise memory leaks can be observed. Also make sure to free the FTDI
context in scan_device() on the error path.

Signed-off-by: Lars-Peter Clausen <redacted>
src/hardware/ftdi-la/api.c