From 7ed063bfa47b641bfb91a19c406c3d81985d9673 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Wed, 24 Feb 2016 22:14:06 +0000 Subject: [PATCH] Summary: Before returning, call hid_free_enumeration(). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1384 81a1dc3b-b13d-400b-aceb-764788c761c2 --- usb_hidapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usb_hidapi.c b/usb_hidapi.c index 0eabf3b5..53229df0 100644 --- a/usb_hidapi.c +++ b/usb_hidapi.c @@ -121,6 +121,7 @@ static int usbhid_open(char * port, union pinfo pinfo, union filedescriptor *fd) { avrdude_message(MSG_INFO, "%s: usbhid_open(): No matching device found\n", progname); + hid_free_enumeration(list); return -1; } avrdude_message(MSG_DEBUG, "%s: usbhid_open(): Opening path %s\n",