]> sigrok.org Git - libsigrok.git/commit
scpi-pps: Fix dev_clear() implementation
authorLars-Peter Clausen <redacted>
Fri, 29 Apr 2016 14:37:36 +0000 (16:37 +0200)
committerLars-Peter Clausen <redacted>
Tue, 3 May 2016 19:24:26 +0000 (21:24 +0200)
commit1e726f568d6d72a8c6afdcd8fa98b98e910ad523
treed09f3bf6a3d7adf8c3ff28cc81b2d56ae3fb7061
parent696b79d2aad00c359cb279cddcfab15c0f8ec08f
scpi-pps: Fix dev_clear() implementation

Devices for the scpi-pps 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 for the dev_clear() callback. This
will cause memory leaks when sr_dev_clear() is called for this driver.

To fix this let the dev_clear() free the additional data.

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