sigrok-cli.c: Fix memory leak in parsing of hardware options
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Thu, 20 Dec 2012 03:53:51 +0000 (21:53 -0600)
committerUwe Hermann <uwe@hermann-uwe.de>
Tue, 1 Jan 2013 23:28:25 +0000 (00:28 +0100)
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 <mr.nuke.me@gmail.com>

No differences found