On Donnerstag, 15. November 2018 19:46:43 CET Guido Trentalancia wrote:
> Avoid double memory freeing leading to segmentation fault in
> the hameg-hmo driver when an SCPI command fails to get a
> string due conditions such as a timeout or an invalid command.
> 
> # sr: scpi: Timed out waiting for SCPI response.
> # double free or corruption (!prev)

While the change itself is correct, the commit message is wrong. In case of an 
error, tmp is left uninitialized and g_free is called with an invalid 
argument.

Regards,

Stefan
-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to