]> sigrok.org Git - libsigrok.git/commit
fluke-45: fix minor memory leaks in the probe routine
authorGerhard Sittig <redacted>
Sat, 3 Nov 2018 13:52:00 +0000 (14:52 +0100)
committeruser <redacted>
Sat, 10 Nov 2018 17:26:30 +0000 (18:26 +0100)
commitc10b0276da44a412b9a43ede3ae9ffa568604b93
treee88ceac2845513bc25562921501f6a71cdf404d3
parent71db2d4d06c2d7dd52cfda2d737120ef8648afd5
fluke-45: fix minor memory leaks in the probe routine

Free the SCPI hardware info after successful model detection, too. Only
allocate the device instance when a supported model was found. Link the
device context earlier right after allocation, for easier verification.
src/hardware/fluke-45/api.c