]> sigrok.org Git - libsigrok.git/commit
serial: Fix leak in serial_open.
authorpoljar (Damir Jelić) <redacted>
Tue, 19 Nov 2013 00:08:19 +0000 (01:08 +0100)
committerBert Vermeulen <redacted>
Tue, 19 Nov 2013 09:29:24 +0000 (10:29 +0100)
commit066d42b1c803e3b78b7d34df1f1516f729f81085
treeee78ce1a072c2ed4fe8ada3ceadcfa8b61301c74
parent90c7f4e92d020a50b17bb64484209b6e5805003b
serial: Fix leak in serial_open.

A new sp_port is created every time we call serial_open (sp_get_port_by_name
implicitly creates one for us), so free it every time we call serial_close.
hardware/common/serial.c