]> sigrok.org Git - libserialport.git/commit
Fix free() of uninitialized pointer.
authorBoris Gjenero <redacted>
Fri, 5 Dec 2014 17:38:43 +0000 (18:38 +0100)
committerUwe Hermann <redacted>
Fri, 5 Dec 2014 17:42:43 +0000 (18:42 +0100)
commite31f2c6b8b8f2b7e554df911cc9a3482b99632b4
treef7fab2b88bcaf27a432beecf7e85f6ce0edb5092
parentb328a48b0fd8ce51f400b5e06bc1e2ab52e3c9ae
Fix free() of uninitialized pointer.

Explicitly set port->usb_path to NULL, otherwise a free(port->usb_path)
can happen where port->usb_path is uninitialized.

This closes bug #512.
serialport.c