Commit 895e45bd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix unlikely memory leak

parent adcc3cca
......@@ -470,8 +470,10 @@ static vlc_v4l2_ctrl_t *ControlAddButton (vlc_object_t *obj, int fd,
return NULL;
if (var_Create (obj, c->name, VLC_VAR_VOID | VLC_VAR_ISCOMMAND))
{
free (c);
return NULL;
(void) fd;
}
return c;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment