Fix memory leak in libusb code

This commit is contained in:
nyanpasu64 2023-06-18 14:31:01 -07:00
parent 0366122306
commit 54850e936c
1 changed files with 1 additions and 0 deletions

View File

@ -636,6 +636,7 @@ static void AddGCAdapter(libusb_device* device)
}
}
}
libusb_free_config_descriptor(config);
int size = 0;
std::array<u8, CONTROLER_OUTPUT_INIT_PAYLOAD_SIZE> payload = {0x13};