diff options
| author | nyanpasu64 <nyanpasu64@tuta.io> | 2023-06-18 14:31:01 -0700 |
|---|---|---|
| committer | nyanpasu64 <nyanpasu64@tuta.io> | 2023-07-05 20:38:22 -0700 |
| commit | 54850e936c4fb3d78d6dfc627822a2c495262c1b (patch) | |
| tree | 9640e80d3fc567a47b891eef3c0fa951aa7a2fbd /Source/Core/InputCommon/GCAdapter.cpp | |
| parent | 03661223069aab4291b65c86727b4b9711b5878b (diff) | |
Fix memory leak in libusb code
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter.cpp')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index a3853e9e6c..21a1255fb0 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -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}; |
