summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Zaoral <lzaoral@redhat.com>2021-07-20 14:50:32 +0200
committerLukas Zaoral <lzaoral@redhat.com>2021-07-21 13:32:44 +0200
commit3ce4682045b99644eb5991c41c9be6882bee0810 (patch)
tree07365a824d4682d819e145f050f50880a064ea34
parente7dcdafb1edb4721f59562c259b102b2f81ae423 (diff)
downloadusbutils-3ce4682045b99644eb5991c41c9be6882bee0810.tar.gz
lsusb.c: fix leak in dump_printer_device
Allocation made by get_dev_string was not freed. Signed-off-by: Lukas Zaoral <lzaoral@redhat.com>
-rw-r--r--lsusb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lsusb.c b/lsusb.c
index f686557..46f672a 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -2423,6 +2423,7 @@ static void dump_printer_device(libusb_device_handle *dev,
else if ((caps & 0x60) == 0x60)
printf(" Negotiable-Auth");
printf("\n");
+ free(uuid);
break;
}
default: