Message ID | 20191129094248.13237-1-andreas.rheinhardt@gmail.com |
---|---|
State | Accepted |
Commit | 2205fb281074a31388e78c615193410cc9c10042 |
Headers | show |
On Fri, Nov 29, 2019 at 10:42:48AM +0100, Andreas Rheinhardt wrote: > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> > --- > libavformat/avio.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) will apply thx [...]
diff --git a/libavformat/avio.c b/libavformat/avio.c index c1bad312cd..2dd2312296 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -346,8 +346,7 @@ int ffurl_open_whitelist(URLContext **puc, const char *filename, int flags, if (!ret) return 0; fail: - ffurl_close(*puc); - *puc = NULL; + ffurl_closep(puc); return ret; }
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> --- libavformat/avio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)