Summary: Before returning, call hid_free_enumeration().
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1384 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
e1ce7be101
commit
7ed063bfa4
|
@ -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",
|
avrdude_message(MSG_INFO, "%s: usbhid_open(): No matching device found\n",
|
||||||
progname);
|
progname);
|
||||||
|
hid_free_enumeration(list);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
avrdude_message(MSG_DEBUG, "%s: usbhid_open(): Opening path %s\n",
|
avrdude_message(MSG_DEBUG, "%s: usbhid_open(): Opening path %s\n",
|
||||||
|
|
Loading…
Reference in New Issue