summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-08-02 16:53:17 -0700
committerKeith Packard <keithp@keithp.com>2016-08-02 16:55:12 -0700
commitd52cb9dac725206ba7b2d26818c84f134d5bf183 (patch)
tree2f7fe93b15cc3a355c08b433f4c50535ba93b98d
parent3bdc9028502c766d1c8ddb4f0dedba4bbc22384e (diff)
ao-chaosread: Eliminate double-free when serial match fails
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--ao-tools/ao-chaosread/ao-chaosread.c1
1 files changed, 0 insertions, 1 deletions
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;