ao-chaosread: Eliminate double-free when serial match fails
[fw/altos] / ao-tools / ao-chaosread / ao-chaosread.c
index ca7b65a7c89074d5e75ac6b11490dacd5fe78f5b..82831201c1b3ffe1e7c1ddf87470f8cb1b6dd80b 100644 (file)
@@ -91,7 +91,6 @@ chaoskey_match(libusb_device *dev, char *match_serial)
        return handle;
 
 out:
-       free(device_serial);
        if (handle)
                libusb_close(handle);
        return 0;