mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-19 00:41:53 +00:00
(IOHIDManager) Plug another potential leak
This commit is contained in:
parent
8c106eb010
commit
40023833e0
@ -323,8 +323,10 @@ static void iohidmanager_hid_device_add(void *data, IOReturn result,
|
||||
struct iohidmanager_hid_adapter *adapter = (struct iohidmanager_hid_adapter*)
|
||||
calloc(1, sizeof(*adapter));
|
||||
|
||||
if (!adapter || !hid)
|
||||
if (!adapter)
|
||||
return;
|
||||
if (!hid)
|
||||
goto error;
|
||||
|
||||
adapter->handle = device;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user