avformat/avio: Use ffurl_closep

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/333/head
Andreas Rheinhardt 5 years ago committed by Michael Niedermayer
parent 8c2f81a17a
commit 2205fb2810
  1. 3
      libavformat/avio.c

@ -346,8 +346,7 @@ int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags,
if (!ret) if (!ret)
return 0; return 0;
fail: fail:
ffurl_close(*puc); ffurl_closep(puc);
*puc = NULL;
return ret; return ret;
} }

Loading…
Cancel
Save