From: Gerhard Sittig Date: Sun, 16 May 2021 12:40:00 +0000 (+0200) Subject: fluke-45: free memory that was allocated by SCPI get routines X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=c9cfcd25917c4ee5767fa097d4fa8fb8a4888a6d;hp=c9cfcd25917c4ee5767fa097d4fa8fb8a4888a6d fluke-45: 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. This implementation is incomplete. The fluke-45 driver's context holds a "global" copy of the most recently received response. While the data is freed in the next receive call, one item remains allocated for the driver's remaining life time. Which is considered non-critical. Also moves an operator in a complex multi-line expression to a different location to follow the project's style. This addresses part of bug #1683. ---