From: Alexandru Gagniuc Date: Thu, 20 Dec 2012 03:53:51 +0000 (-0600) Subject: sigrok-cli.c: Fix memory leak in parsing of hardware options X-Git-Tag: sigrok-cli-0.4.0~60 X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=a2853311f3a1d9a6e43bd08efbd960f079431bc0;hp=a2853311f3a1d9a6e43bd08efbd960f079431bc0 sigrok-cli.c: Fix memory leak in parsing of hardware options During parsing of hardware options, hash_to_hwopt() creates a GSList that is passed to device_scan(). The list is discarded by device_scan() and never freed. This is identified by valgrind as "definitely lost". Call g_slist_free_full() on the list when it is no longer needed. Signed-off-by: Alexandru Gagniuc ---