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

v4l2: fix memory leak on error

parent bf44fecd
......@@ -457,7 +457,11 @@ static int InitVideo (demux_t *demux, int fd)
if (vlc_clone (&sys->thread, entry, demux, VLC_THREAD_PRIORITY_INPUT))
if (sys->bufv != NULL)
StopMmap (sys->fd, sys->bufv, sys->bufc);
return -1;
return 0;
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