From: Keith Packard Date: Tue, 2 Aug 2016 23:53:17 +0000 (-0700) Subject: ao-chaosread: Eliminate double-free when serial match fails X-Git-Tag: 1.6.8~1^2~26 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=d52cb9dac725206ba7b2d26818c84f134d5bf183 ao-chaosread: Eliminate double-free when serial match fails Signed-off-by: Keith Packard --- diff --git a/ao-tools/ao-chaosread/ao-chaosread.c b/ao-tools/ao-chaosread/ao-chaosread.c index ca7b65a7..82831201 100644 --- a/ao-tools/ao-chaosread/ao-chaosread.c +++ b/ao-tools/ao-chaosread/ao-chaosread.c @@ -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;