device.c: Fix memory leak in sr_serial_dev_inst_free
sr_serial_dev_inst_free() freed all members of sr_serial_dev_inst, but did not free the struct itself, as expected from a free_*() function. This inadvertently caused a memory leak in every place sr_serial_dev_inst is used. Free the struct itself + g_free(serial); Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
parent
d55c89f523
commit
acac8fc350