Commit 8fac0d64 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avio: free url/avio options

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent c323c98e
...@@ -412,6 +412,7 @@ int ffurl_closep(URLContext **hh) ...@@ -412,6 +412,7 @@ int ffurl_closep(URLContext **hh)
av_opt_free(h->priv_data); av_opt_free(h->priv_data);
av_freep(&h->priv_data); av_freep(&h->priv_data);
} }
av_opt_free(h);
av_freep(hh); av_freep(hh);
return ret; return ret;
} }
......
...@@ -956,6 +956,7 @@ int avio_close(AVIOContext *s) ...@@ -956,6 +956,7 @@ int avio_close(AVIOContext *s)
av_log(s, AV_LOG_DEBUG, "Statistics: %d seeks, %d writeouts\n", s->seek_count, s->writeout_count); av_log(s, AV_LOG_DEBUG, "Statistics: %d seeks, %d writeouts\n", s->seek_count, s->writeout_count);
else else
av_log(s, AV_LOG_DEBUG, "Statistics: %"PRId64" bytes read, %d seeks\n", s->bytes_read, s->seek_count); av_log(s, AV_LOG_DEBUG, "Statistics: %"PRId64" bytes read, %d seeks\n", s->bytes_read, s->seek_count);
av_opt_free(s);
av_free(s); av_free(s);
return ffurl_close(h); return ffurl_close(h);
} }
......
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