]> sigrok.org Git - libsigrok.git/commit
siglent-sds: free memory that was allocated by SCPI get routines
authorGerhard Sittig <redacted>
Sun, 16 May 2021 12:54:48 +0000 (14:54 +0200)
committerGerhard Sittig <redacted>
Sat, 22 May 2021 06:06:58 +0000 (08:06 +0200)
commit70158398f3446881eee8493e8f6d2599f26a1c18
tree7deb60ef2a1ee50d38f56c0f23e28da318a0dd3b
parent4da62209ddfa3aad12678c7141c19e9c3e8419c1
siglent-sds: free memory that was allocated by SCPI get routines

The SCPI get routines may allocate memory for response data which
callers have to free after use.

The implemented approach is modelled after pull request 114 by
Matti Eiden, to get the leak fixes in while the PR is queued.

This addresses part of bug #1683.

Submitted-By: Matti Eiden <redacted>
src/hardware/siglent-sds/protocol.c