]> sigrok.org Git - libsigrok.git/commit
rigol-ds: free memory that was allocated by SCPI get routines
authorGerhard Sittig <redacted>
Sun, 16 May 2021 12:48:42 +0000 (14:48 +0200)
committerGerhard Sittig <redacted>
Sat, 22 May 2021 06:06:58 +0000 (08:06 +0200)
commit4fad41a8a4f3e7494a935463e3172cdb4a0ff93f
treeb24cede082c5e2783947fb1813d2a347fec0704d
parent83d38ed90a623b7dc4fcd552d6414e34e0828928
rigol-ds: 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 approach to release allocated memory is simlar or identical to the
corresponding parts of pull request 95, in an attempt to get the reported
leak fixes in, yet reduce the potential for conflicts where this commit
deviates from the PR. Most work was done by Ralf. Thank you!

This addresses part of bug #1683.

Submitted-By: Reported-By: Ralf <redacted>
Tested-By: Reported-By: Ralf <redacted>
src/hardware/rigol-ds/protocol.c