mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 19:56:06 +00:00
Fix one Coverity issue
This commit is contained in:
parent
cc6b602f6a
commit
81096a27b9
@ -84,7 +84,7 @@ bool task_push_netplay_lan_scan(void)
|
||||
retro_task_t *task = (retro_task_t*)calloc(1, sizeof(*task));
|
||||
|
||||
if (!task)
|
||||
goto error;
|
||||
return false;
|
||||
|
||||
task->type = TASK_TYPE_BLOCKING;
|
||||
task->handler = task_netplay_lan_scan_handler;
|
||||
@ -94,10 +94,4 @@ bool task_push_netplay_lan_scan(void)
|
||||
task_queue_ctl(TASK_QUEUE_CTL_PUSH, task);
|
||||
|
||||
return true;
|
||||
|
||||
error:
|
||||
if (task)
|
||||
free(task);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user