mirror of
https://github.com/libretro/RetroArch
synced 2025-01-01 03:36:35 +00:00
(camera/v4l2) v4l_init - free v4l object at error
This commit is contained in:
parent
96c06b5b26
commit
9284bb6b59
@ -581,6 +581,8 @@ static void *v4l_init(void)
|
||||
|
||||
error:
|
||||
RARCH_ERR("V4L2: Failed to initialize camera.\n");
|
||||
if (v4l)
|
||||
free(v4l);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user