]> sigrok.org Git - libsigrok.git/commit
deree-de5000: Provide dev_clear()
authorLars-Peter Clausen <redacted>
Fri, 29 Apr 2016 14:23:17 +0000 (16:23 +0200)
committerLars-Peter Clausen <redacted>
Tue, 3 May 2016 19:24:12 +0000 (21:24 +0200)
commit696b79d2aad00c359cb279cddcfab15c0f8ec08f
tree9f9596075097ac171573bfd498797d48e3474e4c
parent6ab687315bccddfe3d196040ccab4cff909bb086
deree-de5000: Provide dev_clear()

Devices for the deree-de5000 driver do have additional data attached to it
that needs to be freed when the device is freed. While the driver gets it
right for the cleanup() callback it does not implement a dev_clear()
callback, so the default dev_clear() implementation is used which will not
free the additional data. This will cause memory leaks when sr_dev_clear()
is called for this driver.

To fix this provide a dev_clear() implementation that frees the additional
data.

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