1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 20:25:47 +00:00

Merge pull request #1629 from lioncash/leak

libusb_hid: Fix a potential memory leak
This commit is contained in:
Twinaphex 2015-04-15 09:26:51 +02:00
commit e9dd1603ab

View File

@ -188,6 +188,7 @@ static int add_adapter(void *data, struct libusb_device *dev)
if (!adapter || !hid)
{
free(adapter);
fprintf(stderr, "Allocation of adapter failed.\n");
return -1;
}