mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 15:40:35 +00:00
drm_gfx: Fix memory leak in fail case
This commit is contained in:
parent
3bd4739cee
commit
bc28d46bbb
@ -728,6 +728,7 @@ static void *drm_gfx_init(const video_info_t *video,
|
||||
if (!init_drm())
|
||||
{
|
||||
RARCH_ERR ("DRM: Failed to initialize DRM\n");
|
||||
free(_drmvars);
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user