From d52cb9dac725206ba7b2d26818c84f134d5bf183 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 2 Aug 2016 16:53:17 -0700 Subject: [PATCH] ao-chaosread: Eliminate double-free when serial match fails Signed-off-by: Keith Packard --- ao-tools/ao-chaosread/ao-chaosread.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.30.2