mjpeg: fix leak

8 jobs for master in 19 minutes and 54 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #401853
amd64 docker
nightly-debian

00:08:06

passed #401855
macos
nightly-macos

00:13:41

passed #401854
amd64 docker
nightly-snap

00:17:23

failed #401847
amd64 docker
nightly-win32

00:02:29

failed #401849
amd64 docker
nightly-win64

00:02:54

failed #401851
amd64 docker
nightly-win64-llvm

00:03:33

passed #401856
amd64 docker
pages

00:02:15

 
  Deploy
passed pages:deploy

00:00:05

 
Name Stage Failure
failed
nightly-win64-llvm Build
make[1]: Leaving directory '/builds/videolan/vlc/win64'
make: *** [Makefile:1460: all] Error 2
Running after_script
Running after script...
$ mkdir nightlies
$ for ext in 7z zip; do mv ${SHORTARCH}/vlc-*-dev-*-debug.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*-debug.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/"); done
mv: cannot stat 'win64/vlc-*-dev-*-debug.7z': No such file or directory
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
nightly-win64 Build
make: *** [all] Error 2
Makefile:1459: recipe for target 'all' failed
Running after_script
Running after script...
$ mkdir nightlies
$ for ext in 7z zip; do mv ${SHORTARCH}/vlc-*-dev-*-debug.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*-debug.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/"); done
mv: cannot stat 'win64/vlc-*-dev-*-debug.7z': No such file or directory
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
nightly-win32 Build
make: *** [all] Error 2
Makefile:1459: recipe for target 'all' failed
Running after_script
Running after script...
$ mkdir nightlies
$ for ext in 7z zip; do mv ${SHORTARCH}/vlc-*-dev-*-debug.${ext} nightlies/$(basename ${SHORTARCH}/vlc-*-dev-*-debug.${ext} | sed "s/\.${ext}/-${CI_COMMIT_SHORT_SHA}\.${ext}/"); done
mv: cannot stat 'win32/vlc-*-dev-*-debug.7z': No such file or directory
Uploading artifacts for failed job
ERROR: Job failed: exit code 1