]> sigrok.org Git - libsigrok.git/commit
device: introduce common sr_channel_free() support code
authorGerhard Sittig <redacted>
Sat, 13 Oct 2018 06:16:18 +0000 (08:16 +0200)
committerUwe Hermann <redacted>
Sat, 13 Oct 2018 13:06:43 +0000 (15:06 +0200)
commitfe71c7e42ea442d7706c7dab4d98c2c9f1658537
treeb65573e1d06bb332418d8304eb01f49127b0fbf6
parent4237ab9e5ba85153b632b43b7eb2411530e11df8
device: introduce common sr_channel_free() support code

There was the sr_channel_new() allocation routine, but releasing that
allocation was open-coded in call sites. Add the sr_channel_free()
routine for code re-use and consistency.
src/device.c
src/libsigrok-internal.h